This commit is contained in:
death916 2025-11-07 02:49:06 -08:00
commit 86fef7cd88
2 changed files with 35 additions and 28 deletions

View file

@ -3,34 +3,40 @@
{
services.restic.backups.laptop = {
user = "root";
initialize = true;
passwordFile = "/etc/nixos/secrets/restic-auth";
repository = "s3:d8j2.or.idrivee2-38.com/backups";
environmentFile = "/etc/nixos/secrets/restic.env";
paths = [
"/home/"
"/root"
"/var/lib/"
"/var/log/"
"/etc/"
user = "root";
initialize = true;
passwordFile = "/etc/nixos/secrets/restic-auth";
repository = "s3:d8j2.or.idrivee2-38.com/backups";
environmentFile = "/etc/nixos/secrets/restic.env";
paths = [
"/home/"
"/root"
"/var/lib/"
# "/var/log/"
"/etc/"
];
pruneOpts = [
"--keep-hourly 48"
"--keep-daily 7"
"--keep-weekly 4"
"--keep-monthly 12"
"--keep-yearly 5"
];
extraBackupArgs = [
"--verbose"
"--exclude-caches"
];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
];
exclude = [
"/home/death916/.local/share/*"
"/home/death916/Downloads"
];
pruneOpts = [
"--keep-hourly 48"
"--keep-daily 7"
"--keep-weekly 4"
"--keep-monthly 12"
"--keep-yearly 5"
];
extraBackupArgs = [
"--verbose"
"--exclude-caches"
];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
}