../vendor/bin/drush archive-dump --destination=backup.tar # make archive files&db to file
../vendor/bin/drush up drupal # update just core
../vendor/bin/drush up # update all
../vendor/bin/drush up --no-core # update all except core
cp drush files to public_html (dont cp - errors with path)
set webroot as public_html/web and move drupal files there
in public_html run: composer require drush/drush:7.* # this will install drush 7
in dir public_html/web run:
- ../vendor/bin/drush # drush info (with warnings, should works ok)
- ../vendor/bin/drush up # update drupal and modules (shows list outdated modules and require Y before run updates, so is good for even just overview of outdated stuff)
- ../vendor/bin/drush up drupal # update just core
- ../vendor/bin/drush up ctools devel diff # update just these modules
- ../vendor/bin/drush pml # modules list ?
- ../vendor/bin/drush cron # run cron
- ../vendor/bin/drush updb # database update
- ../vendor/bin/drush cc # clear cache ?
- ../vendor/bin/drush site-install standard --account-name=XXXX --account-pass=XXXX --db-url=mysql://db_user:db_pass@localhost/db_name - install D7
- ../vendor/bin/drush dl drupal-7-65 # download and unpack drupal
- ../vendor/bin/drush archive-dump --destination=backup.tar # make archive files&db to file
- ../vendor/bin/drush status # some web infos
- ../vendor/bin/drush dl coffee # download module to sites/all/modules
- ../vendor/bin/drush en coffee # enable module
- ../vendor/bin/drush dis coffee # disable module
drush pm-updatestatus --lock=ModuleName --lock-message="message"
drush pm-updatestatus --unlock=ModuleName