mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Systemd timers for backup and forget
This commit is contained in:
parent
690261ea95
commit
f3c5d56506
8
util/systemd/rustic-backup@.service
Normal file
8
util/systemd/rustic-backup@.service
Normal 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
|
||||
12
util/systemd/rustic-backup@.timer
Normal file
12
util/systemd/rustic-backup@.timer
Normal 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
|
||||
6
util/systemd/rustic-forget@.service
Normal file
6
util/systemd/rustic-forget@.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=rustic --use-profile %I forget
|
||||
|
||||
[Service]
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/usr/bin/rustic --use-profile %I forget
|
||||
12
util/systemd/rustic-forget@.timer
Normal file
12
util/systemd/rustic-forget@.timer
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user