You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
357 B
16 lines
357 B
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export DESTDIR="/Volumes/coldbackup"
|
|
|
|
if [ ! -d "$DESTDIR" ]; then
|
|
echo "dest disk $DESTDIR not present" > /dev/stderr
|
|
exit 127
|
|
fi
|
|
|
|
vagrant destroy -f || true # FIXME this may cause disk corruption
|
|
|
|
PASSPHRASEFILE="${HOME}/Documents/Secure/backup-password.txt"
|
|
export BACKUP_ENCRYPTION_KEY="$(cat "$PASSPHRASEFILE")"
|
|
vagrant up
|
|
|