mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 05:21:43 +00:00
feat: schedule nightly off-host backups
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Dragon's Stash off-host backup
|
||||
After=network-online.target docker.service
|
||||
Requires=docker.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=root
|
||||
EnvironmentFile=-/etc/dragons-stash/backup.env
|
||||
WorkingDirectory=/opt/stacks/DragonsStash
|
||||
ExecStart=/opt/stacks/DragonsStash/scripts/backup/run-backup.sh
|
||||
TimeoutStartSec=infinity
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Nightly Dragon's Stash off-host backup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:00:00
|
||||
Persistent=true
|
||||
RandomizedDelaySec=15m
|
||||
Unit=dragons-stash-backup.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user