config.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. location:
  2. # List of source directories to backup. Globs are expanded.
  3. source_directories:
  4. - /home
  5. - /etc
  6. - /var/log/syslog*
  7. # Stay in same file system (do not cross mount points).
  8. #one_file_system: yes
  9. # Alternate Borg remote executable (defaults to "borg"):
  10. #remote_path: borg1
  11. # Path to local or remote repository.
  12. repository: user@backupserver:sourcehostname.borg
  13. #storage:
  14. # Passphrase to unlock the encryption key with. Only use on repositories
  15. # that were initialized with passphrase/repokey encryption. Quote the value
  16. # if it contains punctuation so it parses correctly. And backslash any
  17. # quote or backslash literals as well.
  18. #encryption_passphrase: "foo"
  19. # Type of compression to use when creating archives. See
  20. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create
  21. # for details. Defaults to no compression.
  22. #compression: lz4
  23. # Umask to be used for borg create.
  24. #umask: 0077
  25. retention:
  26. # Retention policy for how many backups to keep in each category. See
  27. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for
  28. # details.
  29. #keep_within: 3H
  30. #keep_hourly: 24
  31. keep_daily: 7
  32. keep_weekly: 4
  33. keep_monthly: 6
  34. keep_yearly: 1
  35. # When pruning, only consider archive names starting with this prefix.
  36. #prefix: sourcehostname
  37. consistency:
  38. # List of consistency checks to run: "repository", "archives", or both.
  39. # Defaults to both. Set to "disabled" to disable all consistency checks.
  40. # See https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check
  41. # for details.
  42. checks:
  43. - repository
  44. - archives
  45. # Restrict the number of checked archives to the last n.
  46. #check_last: 3