various
parent
b79c79e835
commit
11e45a59d1
|
@ -28,6 +28,7 @@
|
||||||
!/etc/systemd/system/
|
!/etc/systemd/system/
|
||||||
/etc/systemd/system/*
|
/etc/systemd/system/*
|
||||||
!/etc/systemd/system/zio-backup.service
|
!/etc/systemd/system/zio-backup.service
|
||||||
|
!/etc/systemd/system/zio-backup.timer
|
||||||
|
|
||||||
# /usr/
|
# /usr/
|
||||||
!/usr/
|
!/usr/
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Zio Backup
|
Description=Zio Backup
|
||||||
After=network.target network-online.target
|
|
||||||
Requires=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
ExecStart=/usr/local/bin/zio-backup
|
ExecStart=/usr/local/bin/zio-backup
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Zio Backup (daily)
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
AccuracySec=1m
|
||||||
|
RandomizedDelaySec=1h
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue