nixos-config/config/services/restic.nix

19 lines
646 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"
"--exclude=/var/lib/minio/disk0/cache.int.chir.rs" # Cache files, dont need backups since they are automatically deleted anyways…
"--exclude=/var/lib/minio/disk1/cache.int.chir.rs"
"--exclude=/var/lib/minio/disk2/cache.int.chir.rs"
"--exclude=/var/lib/minio/disk3/cache.int.chir.rs"
];
repository = "sftp:darkkirb@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
}