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,
|
systemdMount, # Systemd mount name
|
||||||
borgArchiveFolder,
|
borgArchiveFolder, # Absolute borg root folder
|
||||||
keepWithin? "14d",
|
keepWithin? "14d",
|
||||||
keepWeekly? "4",
|
keepWeekly? "4",
|
||||||
keepMonthly? "6",
|
keepMonthly? "6",
|
||||||
keepYearly? "-1",
|
keepYearly? "-1",
|
||||||
|
schedule? "13:37", # Systemd Schedule of backup timer
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let pkgs = import<nixpkgs>{};
|
let pkgs = import<nixpkgs>{};
|
||||||
|
@ -56,7 +58,7 @@ in
|
||||||
description = "Backup Schedule";
|
description = "Backup Schedule";
|
||||||
|
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "13:37";
|
OnCalendar = schedule;
|
||||||
Persistent = "true";
|
Persistent = "true";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue