diff options
Diffstat (limited to 'scripts/box/run-backup.env.sh')
-rwxr-xr-x | scripts/box/run-backup.env.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/box/run-backup.env.sh b/scripts/box/run-backup.env.sh new file mode 100755 index 0000000..e1ecdf0 --- /dev/null +++ b/scripts/box/run-backup.env.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}" +export BORG_PASSPHRASE="${BORG_PASSPHRASE}" +# The configured $BORG_REPO is already the rsync.net remote. +# No need to send the files after the backup is done. +borg create \ + --verbose \ + --stats \ + --progress \ + --compression lzma,6 \ + "${BORG_REPO}::{hostname}-{now}-${VPS_COMMIT_SHA}" \ + "${VOLUME_HOME}" |