38 lines
930 B
Text
38 lines
930 B
Text
#place into ~/.config/borg.config and adapt
|
|
|
|
BORGHOST="glotze"
|
|
USER="backup"
|
|
REPO="backup"
|
|
BORG_PASSPHRASE=""
|
|
export BORG_PASSPHRASE
|
|
|
|
MYREPO=${USER}@${BORGHOST}:${REPO}
|
|
|
|
BORG_EXCLUDE_FILE=""
|
|
|
|
BORG_EXCLUDE_PATTERN=("/var/cache/*"
|
|
"/var/tmp/*"
|
|
"/var/log/*"
|
|
"/home/*/.cache/*"
|
|
"/root/.cache/*"
|
|
)
|
|
|
|
BORG_BACKUP_DIRS=(
|
|
"/etc"
|
|
"/var"
|
|
"/boot"
|
|
"/root"
|
|
"/home"
|
|
"/usr/local"
|
|
"/var/lib/libvirt/images"
|
|
)
|
|
|
|
BORG_ARGS="--compression lzma,7"
|
|
|
|
BORG_PRUNEARG=("--keep-daily=7" "--keep-weekly=4" "--keep-monthly=12")
|
|
|
|
#only needed if executed as an non-root user AND in an environment without HOME-variable -> adapt to non-root home.
|
|
#HOME="/root/"
|
|
|
|
set if backup host has to be woken up
|
|
#MAC=""
|