various
This commit is contained in:
parent
b79c79e835
commit
11e45a59d1
3 changed files with 12 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,6 +28,7 @@
|
|||
!/etc/systemd/system/
|
||||
/etc/systemd/system/*
|
||||
!/etc/systemd/system/zio-backup.service
|
||||
!/etc/systemd/system/zio-backup.timer
|
||||
|
||||
# /usr/
|
||||
!/usr/
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
[Unit]
|
||||
Description=Zio Backup
|
||||
After=network.target network-online.target
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/bin/zio-backup
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
11
etc/systemd/system/zio-backup.timer
Normal file
11
etc/systemd/system/zio-backup.timer
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Zio Backup (daily)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
AccuracySec=1m
|
||||
RandomizedDelaySec=1h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue