added systemd service
This commit is contained in:
parent
9a7637b7c4
commit
3021d1d22f
10
btrbk.service
Normal file
10
btrbk.service
Normal 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
10
btrbk.timer
Normal 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
|
Loading…
Reference in a new issue