#BORG="/usr/bin/borg" BORG_REPO="@:/srv/borg/$(hostname -f)" # If using a non-standard SSH port ssh:// have to be specified (per borg v1.0.9) #BORG_REPO="ssh://@:/srv/borg/$(hostname -f)" BORG_PASSPHRASE="longandcomplexpassphrase" PATHS=( "/etc" "/home" "/root" "/srv" "/usr/local" "/var/spool/cron/crontabs" ) EXCLUDES=( "sh:/home/**/.cache" "/root/.cache" "*.pyc" ) KEEP_DAILY=31 KEEP_WEEKLY=0 KEEP_MONTHLY=24 KEEP_YEARLY=5 # Limit bandwith used when backing up to SSH repositories. Requires the utility `pv`. # The unit is bytes per second. 0 means no limit. The numeric part must be an integer value. # You can use K, M, G or T binary prefixes (power of 1024), e.g., 5M = 5MiB/s = 5242880 bytes/s. #BWLIMIT=0 # Change this if you need to have multiple borgwrapper instances running # using different configs. #LOCKFILE="/var/lock/borgwrapper.lock" # Command to execute before backup, e.g., taking a ZFS snapshot. Must return successfully # for backup to start. POST_BACKUP_CMD is executed even if this fails. #PRE_BACKUP_CMD=() # Command to execute after backup, e.g., removing a snapshot or sending a report somewhere. # This command is executed regardless of backup success. #POST_BACKUP_CMD=() # Command to execute after verification. # This command is executed regardless of verification success. #POST_VERIFY_CMD=() # Optional arguments to the different borg commands. # The current default values are listed. Modify if needed. #BORG_BACKUP_ARGS=( # --info # --stats # --list # --filter AME # --compression lz4 #) #BORG_PRUNE_ARGS=( # --info # --stats # --list #) #BORG_CHECK_ARGS=( # --info #)