diff --git a/contrib/borg.config b/contrib/borg.config new file mode 100644 index 0000000..a65b4a6 --- /dev/null +++ b/contrib/borg.config @@ -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=""