oizys/modules/storage/restic.nix

28 lines
712 B
Nix
Raw Normal View History

{...}: {
2024-01-23 11:51:13 -06:00
services.restic.backups.gdrive = {
2024-03-19 07:43:35 -05:00
# BUG: if .conda/environments.txt doesn't exist then this won't work
# workaround for now `mkdir ~/.conda && touch ~/.conda/environments.txt`
2024-03-19 08:56:51 -05:00
2024-01-23 11:51:13 -06:00
extraBackupArgs = [
"--exclude-file /home/daylin/.config/restic/excludes.txt"
"--exclude-file /home/daylin/.conda/environments.txt"
"--verbose"
"--one-file-system"
"--tag systemd.timer"
];
pruneOpts = [
"--verbose"
"--tag systemd.timer"
"--keep-daily 7"
"--keep-weekly 4"
"--keep-monthly 12"
"--keep-yearly 3"
];
timerConfig = {
OnCalendar = "00:05";
Persistent = true;
RandomizedDelaySec = "5h";
};
};
}