add borg.config

This commit is contained in:
layman 2019-05-04 14:56:22 +02:00
parent 0bbe208532
commit 8a3a2b9b22

38
contrib/borg.config Normal file
View file

@ -0,0 +1,38 @@
#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=""