mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
solved pull-remote-backups bugs
This commit is contained in:
parent
5544d2a171
commit
53987dc5ef
@ -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
|
||||||
|
@ -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;
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user