2023-12-15 15:18:36 +00:00
|
|
|
{config, ...}: {
|
2023-05-16 19:10:41 +00:00
|
|
|
services.borgbackup.jobs.home = {
|
|
|
|
paths = "/home/laurent/";
|
|
|
|
repo = "/mnt/home_backup";
|
|
|
|
exclude = [
|
|
|
|
# Largest cache dirs
|
|
|
|
".cache"
|
|
|
|
".compose-cache"
|
|
|
|
"*/cache"
|
|
|
|
"*/cache2" # firefox
|
|
|
|
"*/Cache"
|
|
|
|
"*/Code Cache"
|
2023-09-18 17:30:04 +00:00
|
|
|
"*/blob_storage"
|
2023-05-16 19:10:41 +00:00
|
|
|
".config/Slack/logs"
|
|
|
|
".config/Code/CachedData"
|
|
|
|
".container-diff"
|
|
|
|
".npm/_cacache"
|
|
|
|
# Work related dirs
|
|
|
|
"*/node_modules"
|
|
|
|
"*/bower_components"
|
|
|
|
"*/build"
|
|
|
|
"*/_build"
|
|
|
|
"*/.tox"
|
|
|
|
"*/venv"
|
|
|
|
"*/.venv"
|
2023-11-29 15:13:29 +00:00
|
|
|
"*/.direnv"
|
2023-05-16 19:10:41 +00:00
|
|
|
];
|
|
|
|
encryption = {
|
|
|
|
mode = "repokey";
|
|
|
|
passCommand = "cat ${config.age.secrets.borgbackup.path}";
|
|
|
|
};
|
|
|
|
compression = "auto,zstd";
|
2023-12-15 15:18:36 +00:00
|
|
|
startAt = [];
|
2023-05-16 19:10:41 +00:00
|
|
|
};
|
2023-07-10 20:17:37 +00:00
|
|
|
services.borgbackup.jobs.keepass = {
|
|
|
|
paths = "/home/laurent/Documents/db_mdp.kdbx";
|
|
|
|
repo = "ssh://root@fainsin.bzh:624/srv/backup/keepass";
|
|
|
|
user = "laurent";
|
|
|
|
encryption = {
|
|
|
|
mode = "repokey";
|
|
|
|
passCommand = "cat ${config.age.secrets.borgbackup.path}";
|
|
|
|
};
|
|
|
|
compression = "auto,zstd";
|
|
|
|
startAt = "daily";
|
|
|
|
};
|
2023-05-16 19:10:41 +00:00
|
|
|
}
|