feat: add backups, misc over-time changes

This commit is contained in:
Kat Inskip 2024-04-14 10:15:05 -07:00
parent a7f901970d
commit 2b5630d487
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
6 changed files with 93 additions and 3 deletions

View file

@ -0,0 +1,30 @@
{ config, ... }: {
sops.secrets.restic-password-file = {
sopsFile = ./restic.yaml;
};
services.restic.backups = {
${config.networking.hostName} = {
paths = [
"/home/kat/Documents"
"/home/kat/Pictures"
];
exclude = [
];
extraOptions = [
"sftp.command='ssh u401227@u401227.your-storagebox.de -i /home/kat/.ssh/id_ed25519 -s sftp'"
];
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 2"
"--keep-monthly 6"
];
initialize = true;
passwordFile = config.sops.secrets.restic-password-file.path;
repository = "sftp:u401227@u401227.your-storagebox.de:/restic/koishi";
timerConfig = {
OnCalendar = "00:05";
RandomizedDelaySec = "5h";
};
};
};
}