nixos-config/config/services/restic.nix

16 lines
351 B
Nix
Raw Normal View History

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"
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
}