Drush sql-dump mit "result-file" und Date

drush sql-dump --result-file="/path/to/backups/$(date +%Y%m%d_%H%M%S).sql"

Database dump saved to /path/to/backups/20190218_230104.sql

Comments

Cache-tabellen machen DB viel größer. Deswegen ist die folgende Optimierung empfehlenswert:

drush cr && drush sql:dump --result-file=../backup/db_`date +"%Y_%m_%d-%H%M"`.sql

 

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