add systemd files

This commit is contained in:
Martin Sekera 2020-08-27 19:44:13 +02:00
parent 3e790cc2f3
commit dee5f065b6
2 changed files with 16 additions and 0 deletions

View 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
View file

@ -0,0 +1,10 @@
[Unit]
Description=Schedule filesystem snapshots & backups
[Timer]
OnCalendar=*:0/10:00
AccuracySec=5m
Persistent=true
[Install]
WantedBy=timers.target