mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
restic homelab
This commit is contained in:
parent
86fef7cd88
commit
c22ad73fd0
1 changed files with 30 additions and 30 deletions
|
|
@ -3,36 +3,36 @@
|
|||
{
|
||||
|
||||
services.restic.backups.homelab = {
|
||||
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/"
|
||||
"/storage/"
|
||||
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/"
|
||||
"/storage/"
|
||||
|
||||
];
|
||||
pruneOpts = [
|
||||
"--keep-hourly 48"
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 4"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 5"
|
||||
];
|
||||
extraBackupArgs = [
|
||||
"--verbose"
|
||||
"--exclude-caches"
|
||||
];
|
||||
timerConfig = {
|
||||
OnCalendar = "00:05";
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "5h"
|
||||
};
|
||||
};
|
||||
];
|
||||
pruneOpts = [
|
||||
"--keep-hourly 48"
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 4"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 5"
|
||||
];
|
||||
extraBackupArgs = [
|
||||
"--verbose"
|
||||
"--exclude-caches"
|
||||
];
|
||||
timerConfig = {
|
||||
OnCalendar = "00:05";
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "5h";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue