nixos-config/config/services/restic.nix

15 lines
332 B
Nix
Raw Normal View History

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-05-06 15:04:02 +00:00
repository = "sftp:backup@backup.int.chir.rs:/backup";
2022-01-15 17:08:47 +00:00
};
sops.secrets."security/restic/password" = { };
2022-01-15 17:08:47 +00:00
}