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]
Description=docker volume update
Description=pull remote backups
[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;
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]
Description=pulls a remote backup
Description=starts pull remote backup timer
[Timer]
OnCalendar=22:00