# Backup schedule # minute ( 1-59 # | hour 1-23 # | | day of month (1-31) # | | | month (1-12) # | | | | weekday 0=Sun, ..., 6=Sat, 7=Sun # | | | | | CRON=0 1 * * * /opt/scripts/do-backup.sh # Timezone, import for cron to start at the right time TZ=Europe/Berlin # Prometheus URL where to sent metric to, # no metrics will be sent if empty PROM_URL=http://192.168.10.10:9090/push/metrics/job/borg/host/examplehost # Hostname used in the archive name BORG_HOSTNAME=examplehost # Passphrase to encrypt the keyfile BORG_PASSPHRASE=ReplaceWithYourSecretPassphrase # Path within the container to store backups BORG_REPO=/mnt/target/borg # Path within the container to backup BORG_SOURCE_PATH=/mnt/source/data # Volume on the host to mount as backup source # This volume is mounted to /mnt/source within the container VOLUME_SOURCE=/srv # Volume on the host to mount as backup target # This volume is mounted to /mnt/target within the container VOLUME_TARGET=/srv/backup BORG_RETENTION="--keep-hourly 2 --keep-daily 14 --keep-weekly 6 --keep-monthly 12 --keep-yearly 10"