bk/config.toml

90 lines
1.5 KiB
TOML
Raw Normal View History

2025-01-04 23:37:20 +00:00
# Run a script before backup
start_script = "before.sh"
# Run a script after backup
end_script = "after.sh"
# Rsync Operation
[[rsync]]
# Directories SHOULD have trailing `/`
src = "/home/me/"
dest = "/backup/home/me/"
# Excludes
exclude = [".cache", ".local"]
# Delete entries not present in `src` from `destination`
delete = true
# Ensure this directory exists and it not empty before running rsync
ensure_exists = "/home"
2025-01-05 00:43:55 +00:00
# Make a CephFS snapshot before rsync
cephfs_snap = true
2025-01-04 23:37:20 +00:00
# Borg Operation
[[borg]]
2025-01-05 08:57:08 +00:00
# Repo to backup to
2025-01-04 23:37:20 +00:00
repo = "/backup/repo.borg"
2025-01-05 08:57:08 +00:00
# Passphrase
2025-01-04 23:37:20 +00:00
passphrase = "pass"
2025-01-05 08:57:08 +00:00
# Source Directories
2025-01-04 23:37:20 +00:00
src = [ "/home/me/.config" ]
2025-01-05 08:57:08 +00:00
# Excludes
exclude = [
"some/dir"
]
# Exclude if present (example: Do not backup directories with `.nobackup`)
exclude_if_present = [".nobackup"]
# Stay in one filesystem
one_file_system = true
# Backup change time
ctime = false
# Do not backup ACLs
no_acls = true
# Do not backup extended attributes
no_xattrs = true
# Comment to add to the backup
comment = "Backup of /home/me/"
# Compression
compression = "zstd,10"
# Borg Check Operation
[[borg_check]]
# Repository to check
repo = "/backup/repo.borg"
# Full Data Verify
verify_data = true
# Repair Attempt
repair = false
# Borg Prune Operation
[[borg_prune]]
# Repository to prune
repo = "/backup/repo.borg"
# Passphrase
passphrase = "pass"
keep_within = "30d"
keep_last = 20
# keep_secondly = 3
# keep_minutely = 3
# keep_hourly = 10
# keep_daily = 7
# keep_weekly = 4
# keep_monthly = 6
# keep_yearly = 2