27 lines
533 B
TOML
27 lines
533 B
TOML
|
# 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"
|
||
|
|
||
|
# Borg Operation
|
||
|
[[borg]]
|
||
|
repo = "/backup/repo.borg"
|
||
|
passphrase = "pass"
|
||
|
src = [ "/home/me/.config" ]
|