49 lines
1.1 KiB
YAML
Executable File
49 lines
1.1 KiB
YAML
Executable File
location:
|
|
source_directories:
|
|
- /mnt
|
|
repositories:
|
|
#- user@backupserver:sourcehostname.borg # ssh example
|
|
- /backup
|
|
exclude_if_present: .nobackup # do not back up dirs containing X
|
|
local_path: /opt/borg
|
|
|
|
#exclude_patterns:
|
|
# - '*.pyc'
|
|
# - ~/*/.cache
|
|
# - /etc/ssl
|
|
#exclude_from:
|
|
# - /etc/borgmatic/excludes
|
|
|
|
|
|
storage:
|
|
checkpoint_interval: 600 # checkpoint every X seconds during backup
|
|
compression: lz4
|
|
|
|
#remote_rate_limit: 100 # KB per Sec
|
|
#ssh_command: ssh -i /path/to/private/key
|
|
#archive_name_format: '{hostname}-documents-{now}' # borg help placeholders
|
|
|
|
retention:
|
|
keep_daily: 7
|
|
|
|
#keep_within: 3H # Keep all archives within this time interval.
|
|
#keep_secondly: 60
|
|
#keep_minutely: 60
|
|
#keep_hourly: 24
|
|
#keep_weekly: 4
|
|
#keep_monthly: 6
|
|
#keep_yearly: 1
|
|
|
|
#hooks:
|
|
#before_backup:
|
|
# - echo "Starting a backup job."
|
|
#after_backup:
|
|
# - echo "Backup created."
|
|
#on_error:
|
|
# - echo "Error while creating a backup."
|
|
|
|
consistency:
|
|
checks:
|
|
- repository
|
|
#- disabled
|