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]]
|
|
|
|
repo = "/backup/repo.borg"
|
|
|
|
passphrase = "pass"
|
|
|
|
src = [ "/home/me/.config" ]
|