mochi/nixos/hosts/shadowfax/config/backups.nix
Joseph Hanson d3613a4ec4
All checks were successful
Build / nix-build (native-x86_64, gandalf) (push) Successful in 5m3s
Build / nix-build (native-x86_64, shadowfax) (push) Successful in 5m43s
Build / nix-build (native-x86_64, telperion) (push) Successful in 2m9s
restic backup overhaul
2024-12-27 03:25:38 -06:00

28 lines
604 B
Nix

{ ... }:
{
localbackup = {
exclude = [
"/home/*/.cache"
];
initialize = true;
passwordFile = "/etc/nixos/secrets/restic-password";
paths = [
"/home"
];
repository = "/mnt/backup-hdd";
};
remotebackup = {
extraOptions = [
"sftp.command='ssh backup@host -i /etc/nixos/secrets/backup-private-key -s sftp'"
];
passwordFile = "/etc/nixos/secrets/restic-password";
paths = [
"/home"
];
repository = "sftp:backup@host:/backups/home";
timerConfig = {
OnCalendar = "00:05";
RandomizedDelaySec = "5h";
};
};
}