nixos-config/config/services/restic.nix

26 lines
536 B
Nix
Raw Normal View History

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