From c1acc628acfd50e1dba3732c663cbdb64b4fdd06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 5 Nov 2021 13:04:08 +0100 Subject: [PATCH] Add ddev pull command --- .ddev/providers/rsync.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .ddev/providers/rsync.yaml diff --git a/.ddev/providers/rsync.yaml b/.ddev/providers/rsync.yaml new file mode 100755 index 00000000..eaeb9c3f --- /dev/null +++ b/.ddev/providers/rsync.yaml @@ -0,0 +1,14 @@ +environment_variables: + dburl: p546128@185.237.67.190:files/backup/typo3-prod.dump.sql.gz + +auth_command: + command: | + set -eu -o pipefail + ssh-add -l >/dev/null || ( echo "Please 'ddev auth ssh' before running this command." && exit 1 ) + +db_pull_command: + command: | + # set -x # You can enable bash debugging output by uncommenting + set -eu -o pipefail + rsync -az "${dburl}" /var/www/html/.ddev/.downloads/db.sql.gz + service: web