Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: cat command in linux 
Shell :: linux permissions 
Shell :: downgrade ruby version ubuntu 
Shell :: install powershell 7 
Shell :: grep capture group 
Shell :: dependencies needed for kernel edit linux amd64 
Shell :: ffmpeg extract frames resize 
Shell :: add new domain again with certbot 
Shell :: ocoaPods not installed or not in valid state. 
Shell :: linux print to printer 
Shell :: uninstall node arch 
Shell :: surge installation 
Shell :: delete missing files from svn 
Shell :: zgrep recursive 
Shell :: how to disable a user linux 
Shell :: nginx dockerfile 
Shell :: curl save file 
Shell :: ps linux 
Shell :: delete a daemonset deployment 
Shell :: uninstall composer 
Shell :: compile electron app 
Shell :: print variable in bash 
Shell :: create windows 10 bootable usb in ubuntu 
Shell :: Winbox for linux 
Shell :: kubernetes copy secret form another namespace 
Shell :: linux hdparm 
Shell :: wsl storage does not release 
Shell :: github get repo size 
Shell :: install kubectl windows 
Shell :: pip install cookiecutter 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =