diff --git a/.env.example b/.env.example index d2cbf8bc..6a7f9045 100644 --- a/.env.example +++ b/.env.example @@ -23,6 +23,9 @@ FRAPPE_SITE_NAME_HEADER=$$host # Use $$host for multi-site support LANGCHAIN_ENV=production LANGCHAIN_DEBUG=false +# Optional, for site backup downloading: +HETZNER_SSH_PASSWORD="" + # Optional: Custom Image Tags (for development) # CUSTOM_TAG=develop # LANGCHAIN_TAG=develop diff --git a/.gitignore b/.gitignore index 94a9fe2f..26629f28 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ development/* !development/installer.py !development/apps-example.json !development/vscode-example/ +!development/download-backups.sh # Pycharm .idea diff --git a/development/download-backups.sh b/development/download-backups.sh new file mode 100644 index 00000000..a5fa5910 --- /dev/null +++ b/development/download-backups.sh @@ -0,0 +1,6 @@ +# Download backups from production server + +# Load environment variables from .env file +source .env + +sshpass -p "$HETZNER_SSH_PASSWORD" scp -r root@188.245.211.114:/var/lib/docker/volumes/frappe-deployment_sites/_data/qa.ignis.academy/private/backups/ ./development