add systemd files
This commit is contained in:
parent
3e790cc2f3
commit
dee5f065b6
2 changed files with 16 additions and 0 deletions
6
systemd/btv-backup.service
Normal file
6
systemd/btv-backup.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Do a filesystem snapshot, optionally offsite backup
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/env python3 /usr/sbin/btv snapshot --process
|
10
systemd/btv-backup.timer
Normal file
10
systemd/btv-backup.timer
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Schedule filesystem snapshots & backups
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*:0/10:00
|
||||||
|
AccuracySec=5m
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue