solved pull-remote-backups bugs

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-26 16:39:43 +01:00
parent 5544d2a171
commit 53987dc5ef
3 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=docker volume update Description=pull remote backups
[Service] [Service]
Type=oneshot 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; ExecStart=/usr/bin/bash /usr/local/bin/pull-remote-backups.sh

View File

@ -0,0 +1,5 @@
#!/bin/bash
hosts="{{pull_remote_backups_hosts}}";
for host in $hosts; do
bash /usr/local/bin/pull-remote-backup/pull-remote-backup.sh $host;
done;

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=pulls a remote backup Description=starts pull remote backup timer
[Timer] [Timer]
OnCalendar=22:00 OnCalendar=22:00