1234567891011121314151617181920212223242526272829303132333435363738 |
- # 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
- # hostname will be appended to the URL in docker-compose.yml
- PROM_URL=http://pushgateway:9091/push/metrics/job/borg/host/
- # 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"
|