2024-03-10 17:17:05 +00:00
|
|
|
{config, ...}: let
|
2024-03-10 17:26:18 +00:00
|
|
|
inherit (config.services.secrets) secrets;
|
2024-03-10 17:17:05 +00:00
|
|
|
in {
|
|
|
|
services.restic.backups.lappy-t495 = {
|
|
|
|
user = "root";
|
|
|
|
createWrapper = true;
|
|
|
|
|
|
|
|
paths = [
|
|
|
|
"/etc/NetworkManager/system-connections"
|
|
|
|
"/home/chaos/Projects"
|
|
|
|
];
|
|
|
|
extraBackupArgs = [
|
|
|
|
"--exclude-caches"
|
|
|
|
"--exclude=node_modules"
|
|
|
|
"--exclude=/home/chaos/Projects/*/target"
|
|
|
|
];
|
|
|
|
|
|
|
|
repositoryFile = "${secrets.restic_backups_repository_file.path}";
|
|
|
|
passwordFile = "${secrets.restic_backups_password.path}";
|
|
|
|
|
|
|
|
pruneOpts = ["--keep-within=14d"];
|
|
|
|
|
|
|
|
timerConfig = {
|
|
|
|
OnStartupSec = "5m";
|
|
|
|
OnUnitActiveSec = "30m";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|