From 98e7ccfc5072b163a26c74a6e3858161841a2a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andor=20Szab=C3=B3?= Date: Wed, 14 Jan 2026 15:01:24 +0200 Subject: [PATCH] added documentation --- development/download-backups.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/development/download-backups.sh b/development/download-backups.sh index 21da18a0..3fc491e2 100644 --- a/development/download-backups.sh +++ b/development/download-backups.sh @@ -1,4 +1,24 @@ # Download backups from production server +# +# Usage: ./download-backups.sh [backup_timestamp] +# +# Arguments: +# site_name Required. The site to download backups for (e.g., qa.ignis.academy) +# backup_timestamp Optional. Specific backup timestamp to download (e.g., 20260114_150602) +# If not provided, downloads the latest backup set. +# +# Examples: +# ./download-backups.sh qa.ignis.academy # Download latest backup +# ./download-backups.sh qa.ignis.academy 20260114_150602 # Download specific backup +# +# The script will: +# 1. Check if the site is live (has backups in the Docker volume) +# 2. If not live or no backups, check the archived sites folder +# 3. For archived sites, find the latest archive directory matching the site name +# 4. Download only files matching the specified/latest backup timestamp to the development/backups folder +# +# Requires: HETZNER_SSH_PASSWORD environment variable set in .env file +# Requires: sshpass (sudo apt install sshpas) # Check if site name is provided if [ -z "$1" ]; then