-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #739 from nils-werner/systemd-timers
Systemd timers for backup and forget
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=rustic --use-profile %I backup | ||
|
||
[Service] | ||
Nice=19 | ||
IOSchedulingClass=idle | ||
KillSignal=SIGINT | ||
ExecStart=/usr/bin/rustic --use-profile %I backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Daily rustic --use-profile %I backup | ||
Wants=rustic-forget@%i.timer | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
AccuracySec=1m | ||
RandomizedDelaySec=1h | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Unit] | ||
Description=rustic --use-profile %I forget | ||
|
||
[Service] | ||
KillSignal=SIGINT | ||
ExecStart=/usr/bin/rustic --use-profile %I forget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Monthly rustic --use-profile %I forget | ||
PartOf=rustic-backup@%i.timer | ||
|
||
[Timer] | ||
OnCalendar=monthly | ||
AccuracySec=1m | ||
RandomizedDelaySec=1h | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |