Join Jon Peck for an in-depth discussion in this video Archiving and restoring sites, part of Drupal: Simplify Sites with Drush.
To give context for archiving and restoring sites, I will first describe the…three primary structural components in a Drupal site.…The database, which stores all the site content; the codebase which contains all…the executable scripts such as Drupal core, modules, and themes;…Drupal specific hosts typically store the codebase in a revision controlled…repository; and files, which contain generated and uploaded files such as…images, icons, and other media.…By default, these files reside in the same web root as the codebase.…
Before performing updates or making major changes to a site, it's best practice…to back up the site first.…I'll demonstrate how to back up and restore the database, then the entire site…including the codebase and files.…Drush provides a built-in utility for creating a database dump known as…sql-dump: drush sql-dump --help.…This exports a Drupal site database as SQL using MySQL dump or equivalent.…As of this writing, this command has known compatibility issues with Drush for Windows.…
The course describes how to manage users, download and install modules and themes, archive and restore your entire site, and employ site variables for fast, full control over your Drupal sites. Plus, discover how to script an entire Drupal site installation with and without site profiles.
- What is Drush?
- Installing the prerequisite files
- Installing Drush with PEAR, manually, and just for Windows
- Installing Drupal sites
- Managing themes
- Controlling user access
- Controlling cache and cron
- Reading logs
- Updating modules