diff --git a/pull_snapshots.sh b/pull_snapshots.sh new file mode 100644 index 0000000..9eacc80 --- /dev/null +++ b/pull_snapshots.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if ssh backup-atlantis-array@atlantishq.de [[ -e /home/backup-atlantis-array/lock.rsync ]]; then + echo "Lockfile found. Waiting 10s.." + sleep 10 +else + rsync backup-atlantis-array@atlantishq.de:/home/backup-atlantis-array/\* . -rP \ + --remove-source-files +fi