Clean up backup role
This commit is contained in:
parent
1ad1ab3aa4
commit
b2138a8591
1 changed files with 5 additions and 3 deletions
|
@ -1,10 +1,12 @@
|
|||
# Regular backup role to a separate device
|
||||
{
|
||||
systemdMount,
|
||||
borgArchiveFolder,
|
||||
systemdMount, # Systemd mount name
|
||||
borgArchiveFolder, # Absolute borg root folder
|
||||
keepWithin? "14d",
|
||||
keepWeekly? "4",
|
||||
keepMonthly? "6",
|
||||
keepYearly? "-1",
|
||||
schedule? "13:37", # Systemd Schedule of backup timer
|
||||
}:
|
||||
|
||||
let pkgs = import<nixpkgs>{};
|
||||
|
@ -56,7 +58,7 @@ in
|
|||
description = "Backup Schedule";
|
||||
|
||||
timerConfig = {
|
||||
OnCalendar = "13:37";
|
||||
OnCalendar = schedule;
|
||||
Persistent = "true";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue