From 8d1355b4bc5f112d3c464a275ae00a323716d072 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sun, 4 Aug 2024 22:06:26 +0000 Subject: [PATCH] feat: add pull snapshot script --- pull_snapshots.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pull_snapshots.sh 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