feat: add pull snapshot script

This commit is contained in:
2024-08-04 22:06:26 +00:00
parent 0c92bfd36a
commit 8d1355b4bc

8
pull_snapshots.sh Normal file
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