config 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.borg
  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. # Type of compression to use when creating archives. See
  15. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
  16. # for details. Defaults to no compression.
  17. #compression: lz4
  18. # 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://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
  23. #keep_within: 3H
  24. #keep_hourly: 24
  25. keep_daily: 7
  26. keep_weekly: 4
  27. keep_monthly: 6
  28. keep_yearly: 1
  29. #prefix: sourcehostname
  30. [consistency]
  31. # Space-separated list of consistency checks to run: "repository", "archives",
  32. # or both. Defaults to both. Set to "disabled" to disable all consistency
  33. # checks. See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
  34. # for details.
  35. checks: repository archives
  36. # Restrict the number of checked archives to the last n.
  37. #check_last: 3