nixos-config/config/services/restic.nix

25 lines
536 B
Nix

_: {
services.restic.backups."sysbackup" = {
passwordFile = "/run/secrets/security/restic/password";
paths = [
"/var"
"/home"
];
extraBackupArgs = [
"--exclude-caches"
"--compression max"
"--exclude"
"/var/tmp"
"--exclude"
"/var/cache"
"--exclude"
"/root/.cache"
"--exclude"
"/home/darkkirb/.cache"
"--exclude"
"/var/lib/ipfs/root"
];
repository = "sftp:backup:/backup";
};
sops.secrets."security/restic/password" = {};
}