computer-playbook/roles/backup-remote-to-local/templates/backup-remote-to-local.sh.j2

9 lines
241 B
Plaintext
Raw Normal View History

2020-12-26 16:39:43 +01:00
#!/bin/bash
2021-01-10 20:35:37 +01:00
# Pulls the remote backups from multiple hosts
2023-04-18 15:45:52 +02:00
hosts="{{pull_remote_backups}}";
2021-01-05 19:40:52 +01:00
errors=0
2020-12-26 16:39:43 +01:00
for host in $hosts; do
2023-11-17 12:35:39 +01:00
bash {{docker_backup_remote_to_local_folder}}backup-remote-to-local.sh $host || ((errors+=1));
2020-12-26 16:39:43 +01:00
done;
2021-01-05 19:40:52 +01:00
exit $errors;