Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Drupal export db to backup

ddev ssh
 
drush sql-dump --extra-dump=--no-tablespaces | gzip > backup/db-dump.<project-name>.sql.$(date +%Y-%m-%d-%H.%M.%S).gz
 
exit
Source by my.ciesin.columbia.edu #
 
PREVIOUS NEXT
Tagged: #Drupal #export #db #backup
ADD COMMENT
Topic
Name
9+9 =