versioning systemd-files
This commit is contained in:
12
etc/systemd/system/unifi-backup.service
Normal file
12
etc/systemd/system/unifi-backup.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Copy latest UniFi backup to Biff
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target docker.service
|
||||||
|
RequiresMountsFor=/home/urban/docker/unifi
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
User=urban
|
||||||
|
Group=urban
|
||||||
|
WorkingDirectory=/home/urban/docker/unifi
|
||||||
|
ExecStart=/home/urban/docker/unifi/scripts/backup-to-biff.sh
|
||||||
11
etc/systemd/system/unifi-backup.timer
Normal file
11
etc/systemd/system/unifi-backup.timer
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run UniFi backup copy nightly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 03:30:00
|
||||||
|
Persistent=true
|
||||||
|
RandomizedDelaySec=10m
|
||||||
|
Unit=unifi-backup.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
Reference in New Issue
Block a user