mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
Merge branch 'main' of https://github.com/death916/nixconfig
This commit is contained in:
commit
86fef7cd88
2 changed files with 35 additions and 28 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue