Drush backup DB without cache, watchdog etc (and compress with gzip)

Solution:

drush sql:dump --skip-tables-list=watchdog,cache,cache_* | gzip -c > my-db-without-cache-watchdog-$(date +%Y-%m-%d-%H%M).sql.gz

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