⚠️ WARNING ⚠️
Use of
drush archive:dumpanddrush archive:restorecommand on production/sandbox VPS server is discouraged, because they are heavy, intrusive operation that bundle code, files and database together. Because is resource heavy, it may result in long processing time, or memory exhaustion that causes the website to freeze !
Backup Drush Commands - drush archive:dump
| |
Note that:
- The following directories will be excluded from a
--codearchive:.git,vendor(Composer packages installed path, show via runningcomposer info --path --format=json),<root>/sites/@/settings.@.php,sites/default/files(Drupal file directory) - The following directories will be excluded from a
--filearchive:<files-root>/css,<files-root>/js(the aggregated css/js files),<files-root>/styles,<files-root>/php
Restore Drush Commands - drush archive:restore
Restore (import) your code, files, and database.
| |