Internet Search

Update Drupal Core Using Drush

Step:

put site under maintanance
remove "core" and "vendor" directories
backup: setting.php, .htaccess, composer.json, or robots.txt (especially if we make any changing on it)
re-apply any manually modifications to files
copy new drupal at folder
disable maintanance mood

USING DRUSH:

  1. Backup both your files and database: drush archive-dump
  2. Check for available updates: drush ups
  3. Activate maintenance mode: drush sset system.maintenance_mode 1
  4. Clear the cache:  drush cr
  5. Update Drupal 8 core: drush up drupal
  6. If appropriate, re-apply any manual modifications to files. Such as .htaccess, composer.json, or robots.txt.
  7. Reapply any core patches you were using before the upgrade
  8. If using Composer to manage PHP libraries  (e.g. because some contributed modules require it), update your /vendor directory with the following command: composer update drupal/core --with-dependencies
  9. Update database: drush updb
  10. Check status report
  11. Deactivate maintenance mode: drush sset system.maintenance_mode 0
  12. Clear the cache again: drush cr
  13. Done..