coldbackup initial, not working yet

This commit is contained in:
Jeffrey Paul
2014-01-30 06:16:53 +01:00
parent 82dbe944cf
commit e04e41e41f
4 changed files with 79 additions and 0 deletions

16
coldbackup/dobackup.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/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