aboutsummaryrefslogtreecommitdiff
path: root/scripts/box/create-backup.env.sh
blob: f5cd3b05b46f2d12eb96ebb8631cd83f2f677d2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
set -Eeuo pipefail

export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}"
export BORG_PASSPHRASE="${BORG_PASSPHRASE}"
# The configured $BORG_REPO is already the rsync 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}"/*