.env.template 1.1 KB

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