Add systemd units

This commit is contained in:
Les De Ridder 2016-05-05 02:02:25 +00:00
parent 54921977ad
commit 4e19db5f3a
2 changed files with 18 additions and 0 deletions

10
btrfish.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Create incremental btrfs backups and push them to a backup host
[Service]
User=backups
Type=oneshot
ExecStart=/var/backups/backup.fish
[Install]
WantedBy=default.target

8
btrfish.timer Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Run btrfish.serivce daily
[Timer]
OnCalendar=daily
[Install]
WantedBy=default.target