added systemd service

This commit is contained in:
snaki 2022-05-27 15:50:39 +02:00
parent 9a7637b7c4
commit 3021d1d22f
2 changed files with 20 additions and 0 deletions

10
btrbk.service Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=runs backup for btrfs subvolumes
Wants=btrfs.timer
[Service]
Type=oneshot
ExecStart=/usr/local/bin/btrbk
[Install]
WantedBy=multi-user.target

10
btrbk.timer Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=Timer for btrbk.service
Requires=btrbk.service
[Timer]
Unit=btrbk.service
OnCalendar=*-*-* 04:20:00
[Install]
WantedBy=timer.target