Add ddev pull command

This commit is contained in:
Björn Fromme
2021-11-05 13:04:08 +01:00
parent b490bb01f4
commit c1acc628ac
+14
View File
@@ -0,0 +1,14 @@
environment_variables:
dburl: [email protected]: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