# Common configuration for backups from dodecagon to any other server # This file is sourced by borg-wrapper.sh, and must be valid bash script. BORG_USER='borg' # INCLUDE and EXCLUDE are indexed arrays in bash. INCLUDE=( '/etc' '/home' '/root' '/var/backups' '/var/lib/ldap' '/srv' ) EXCLUDE=( '.*/obnam-repository$' '.*/obnam-repository-*' '.*/\.cache' '/root/.local/share/letsencrypt' '/srv/ftp' ) # Only clean old backups when CLEAN_OLD_BACKUPS is exported from parent # CLEAN_OLD_BACKUPS='true' # 1 month daily, half a year weekly, 3 year monthly CLEANUP_POLICY=("--keep-daily=30" "--keep-weekly=26" "--keep-monthly=36")