fix: move pull snapshots script to helper scripts

This commit is contained in:
2024-12-29 15:19:28 +00:00
parent 7f488a984b
commit 581e741470
2 changed files with 5 additions and 4 deletions

View File

@@ -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