2022-06-12 15:42:42 +00:00
|
|
|
_: {
|
2022-01-15 17:08:47 +00:00
|
|
|
services.restic.backups."sysbackup" = {
|
|
|
|
passwordFile = "/run/secrets/security/restic/password";
|
|
|
|
paths = [
|
|
|
|
"/var"
|
|
|
|
"/home"
|
|
|
|
];
|
2022-01-21 17:03:35 +00:00
|
|
|
extraBackupArgs = [
|
|
|
|
"--exclude-caches"
|
2022-09-13 08:18:37 +00:00
|
|
|
"--compression max"
|
2023-06-07 04:43:09 +00:00
|
|
|
"--exclude"
|
|
|
|
"/var/tmp"
|
|
|
|
"--exclude"
|
|
|
|
"/var/cache"
|
|
|
|
"--exclude"
|
|
|
|
"/root/.cache"
|
|
|
|
"--exclude"
|
|
|
|
"/home/darkkirb/.cache"
|
|
|
|
"--exclude"
|
2023-06-08 19:33:36 +00:00
|
|
|
"/var/lib/ipfs/root"
|
2022-01-21 17:03:35 +00:00
|
|
|
];
|
2022-05-06 15:04:02 +00:00
|
|
|
repository = "sftp:backup@backup.int.chir.rs:/backup";
|
2022-01-15 17:08:47 +00:00
|
|
|
};
|
2022-06-12 15:39:15 +00:00
|
|
|
sops.secrets."security/restic/password" = {};
|
2022-01-15 17:08:47 +00:00
|
|
|
}
|