config 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [location]
  2. # Space-separated list of source directories to backup.
  3. # Globs are expanded.
  4. source_directories: /home /etc /var/log/syslog*
  5. # For Borg only, you can specify to stay in same file system (do not cross
  6. # mount points).
  7. #one_file_system: True
  8. # Path to local or remote repository.
  9. repository: user@backupserver:sourcehostname.attic
  10. [storage]
  11. # Passphrase to unlock the encryption key with. Only use on repositories that
  12. # were initialized with passphrase/repokey encryption.
  13. #encryption_passphrase: foo
  14. # For Borg only, you can specify the type of compression to use when creating
  15. # archives. See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
  16. # for details. Defaults to no compression.
  17. #compression: lz4
  18. # For Borg only, you can specify the umask to be used for borg create.
  19. #umask: 0740
  20. [retention]
  21. # Retention policy for how many backups to keep in each category. See
  22. # https://attic-backup.org/usage.html#attic-prune or
  23. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
  24. #keep_within: 3H
  25. #keep_hourly: 24
  26. keep_daily: 7
  27. keep_weekly: 4
  28. keep_monthly: 6
  29. keep_yearly: 1
  30. #prefix: sourcehostname
  31. [consistency]
  32. # Space-separated list of consistency checks to run: "repository", "archives",
  33. # or both. Defaults to both. Set to "disabled" to disable all consistency
  34. # checks. See https://attic-backup.org/usage.html#attic-check or
  35. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check for details.
  36. checks: repository archives
  37. # For Borg only, you can restrict the number of checked archives to the last n.
  38. #check_last: 3