Implemented role native-pull-remote-backups

This commit is contained in:
2020-12-26 15:20:23 +01:00
parent c6bf70cebb
commit fa21feac87
7 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
Description=docker volume update
[Service]
Type=oneshot
ExecStart=hosts="{{pull_remote_backups_hosts}}";for host in $hosts; do /usr/bin/bash /usr/local/bin/pull-remote-backup/pull-remote-backup.sh $host; done;

View File

@@ -0,0 +1,9 @@
[Unit]
Description=pulls a remote backup
[Timer]
OnCalendar=22:00
RandomizedDelaySec=1h
[Install]
WantedBy=timers.target