Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Drupal import db ftom backup

ddev ssh
drush sql-drop
 
Copy the database export from other-developer/git/alpha/beta/prod into the backup directory (to keep it gitignored)
  
gunzip -c backup/<name-of-compressed-database-backup-file.gz> | drush sqlc
    NOTE:   This may take a while because we are importing while decompressing on the fly.
   
exit
Source by my.ciesin.columbia.edu #
 
PREVIOUS NEXT
Tagged: #Drupal #import #db #ftom #backup
ADD COMMENT
Topic
Name
1+7 =