Drush 10 - sql:dump & compress backup to .gz file

 

 drush sql:dump  | gzip -c > ../db-$(date +%Y-%m-%d-%H%M).sql.gz

 

Comments

 

 

Backup Web & DB:

drush sql:dump  | gzip -c > ../backup/db-$(date +%Y-%m-%d-%H%M).sql.gz && tar -zcf ../backup/web-$(date +%Y-%m-%d-%H%M).tar.gz ../webdir/

 

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare