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 :: papermc no gui 
Shell :: Let NetworkManager manage all devices on wsl 2 
Shell :: create fake json from terminal 
Shell :: git create rempote branch 
Shell :: how to know branch from which add branch 
Shell :: nodemon:%20command%20not%20found 
Shell :: yarn not found node version 14.17.4 
Shell :: ipmitool debug 
Shell :: condition expected: grep 
Shell :: Error installing a pod - Bus Error at 0x00000001045b8000 
Shell :: prometheus label __meta_docker_container_name with docker-compose 
Shell :: remove gpg error on your installed app or package 
Shell :: source script locatin 
Shell :: deleting compizconfig 
Shell :: command to make multiple nested directories 
Shell :: commaand creates a copy of the old file with the new name 
Shell :: script inside script bash 
Shell :: docker how to run existing container 
Shell :: linux zip current directory 
Shell :: All changed files github 
Shell :: remove ADS 
Shell :: auto start application ubuntu 18.04 
Shell :: find next greater number with same digits 
Shell :: git push not working 
Shell :: git push ubuntu need to supply email and password everytime 
Shell :: how to ping and know if the target is alive Kali Linux 
Shell :: get childitem filepath list powershell 
Shell :: instalar acrobat reader desde wine en fedora 
Shell :: get-adcomputer servers only 
Php :: var_dump not showing all 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =