nixos-config/config/services/restic.nix

18 lines
646 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ ... }: {
services.restic.backups."sysbackup" = {
passwordFile = "/run/secrets/security/restic/password";
paths = [
"/var"
"/home"
];
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";
};
sops.secrets."security/restic/password" = { };
}