borgmatic/sample/config

44 lines
1.6 KiB
Text
Raw Normal View History

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