Merge pull request #739 from nils-werner/systemd-timers

Systemd timers for backup and forget
This commit is contained in:
aawsome 2023-07-09 16:33:32 +02:00 committed by GitHub
commit 40da0fcbfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,6 @@
[Unit]
Description=rustic --use-profile %I forget
[Service]
KillSignal=SIGINT
ExecStart=/usr/bin/rustic --use-profile %I forget

View File

@ -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