mirror of https://github.com/digint/btrbk
contrib: systemd: added systemd service and timer units (for daily backup)
parent
4db0aa0128
commit
09e214acf4
|
@ -5,6 +5,7 @@ btrbk-current
|
|||
compatibility with all linux distros out there, which all install
|
||||
'btrfs' in different locations (closes: #20).
|
||||
* Catch and display errors from "btrfs subvolume show".
|
||||
* Include systemd service and timer unit for daily backups.
|
||||
|
||||
btrbk-0.17.1
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=btrbk backup
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/btrbk run
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=btrbk daily backup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
AccuracySec=10min
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue