mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: add pull snapshot script
This commit is contained in:
8
pull_snapshots.sh
Normal file
8
pull_snapshots.sh
Normal 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
|
||||
Reference in New Issue
Block a user