Table des matières

Drupal - Mise à jour

Drush

Tuto installation Drush

http://docs.drush.org/en/master/install/

Commandes drush

https://drushcommands.com/drush-8x/

Back up

https://www.drupal.org/docs/7/backing-up-and-migrating-a-site/back-up-your-site-using-the-command-line

Mise à jour

https://www.drupal.org/docs/7/updating-your-drupal-site/updating-drupal-using-drush

Mise a jour de Drupal 7

Mise à jour du cœur de Drupal

Mise à jour de modules complémentaires

Mise à jour de drupal 8 sans Drush

Etapes

  1. Sauvegarde des fichiers
  2. Sauvegarde base de données
  3. S'assurer que git est pushé
  4. Supprimer vendor et core
  5. Récupérer le dernier core drupal
  6. Copier le nouveau core dans le site actuel
  7. Composer update
  8. domain/update.php
cp -rp /path/to/drupal_site /path/to/backup_dir

mysqldump -u USERNAME -p'PASSWORD' DATABASENAME> /path/to/backup_dir/database-backup.sql

git status ...

''wget https://www.drupal.org/files/projects/drupal-x.y.z.tar.gz
tar -zxvf drupal-x.y.z.tar.gz

cp -Rf drupal-x.y.z/* /path/to/your/installation
cp -f drupal-x.y.z/.* /path/to/your/installation

''''composer update drupal/core --with-dependencies''

Run update.php by visiting http://www.example.com/update.php (replace www.example.com with your domain name). This will update the core database tables.

https://www.drupal.org/docs/8/update/update-procedure-in-drupal-8