2
0
Fork 0
main
Ducky 2023-08-13 00:22:53 +01:00
parent b79c79e835
commit 11e45a59d1
3 changed files with 12 additions and 6 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@
!/etc/systemd/system/
/etc/systemd/system/*
!/etc/systemd/system/zio-backup.service
!/etc/systemd/system/zio-backup.timer
# /usr/
!/usr/

View File

@ -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

View File

@ -0,0 +1,11 @@
[Unit]
Description=Zio Backup (daily)
[Timer]
OnCalendar=daily
AccuracySec=1m
RandomizedDelaySec=1h
Persistent=true
[Install]
WantedBy=timers.target