config 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [location]
  2. # Space-separated list of source directories to backup.
  3. # Globs are expanded.
  4. source_directories: /home /etc /var/log/syslog*
  5. # Stay in same file system (do not cross mount points).
  6. #one_file_system: True
  7. # Alternate Borg remote executable (defaults to "borg"):
  8. #remote_path: borg1
  9. # Path to local or remote repository.
  10. repository: user@backupserver:sourcehostname.borg
  11. [storage]
  12. # Passphrase to unlock the encryption key with. Only use on repositories that
  13. # were initialized with passphrase/repokey encryption.
  14. #encryption_passphrase: foo
  15. # Type of compression to use when creating archives. See
  16. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
  17. # for details. Defaults to no compression.
  18. #compression: lz4
  19. # Umask to be used for borg create.
  20. #umask: 0740
  21. [retention]
  22. # Retention policy for how many backups to keep in each category. See
  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://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
  35. # for details.
  36. checks: repository archives
  37. # Restrict the number of checked archives to the last n.
  38. #check_last: 3