Diferencia entre revisiones de «Drush-Based Backup Plan»

De FlossPa Wiki
Saltar a: navegación, buscar
(Created page with "This wiki page will document the design, missing features and implementation plan of a backup plan for Floss-Pa's site based on [http://drupal.org/project/drush Drush]. Feel free...")
 
Línea 5: Línea 5:
 
Ideally, the set of steps that should be executed in order to back up the Drupal site should be:
 
Ideally, the set of steps that should be executed in order to back up the Drupal site should be:
  
# Put the site in maintenance mode
+
# Put the site in maintenance mode
 
# Tar and zip the whole drupal installation
 
# Tar and zip the whole drupal installation
 
# Dump the SQL Database for the whole drupal installation
 
# Dump the SQL Database for the whole drupal installation
 
# Tar and zip the SQL dump
 
# Tar and zip the SQL dump
# Get the site back online
+
# Get the site back online
 
# Move all backup data to a specific location
 
# Move all backup data to a specific location
 
# Rotate backups ‡
 
# Rotate backups ‡
 
† Oddly, drush is currently not capable of dealing with maintenance mode, but we strongly believe it should be implemented so we plan to contribute this module to the drush tool
 
  
 
‡ There are widely used rotation tools like log-rotate, so we could eventually check if we could incorporate rotation step as a module
 
‡ There are widely used rotation tools like log-rotate, so we could eventually check if we could incorporate rotation step as a module

Revisión del 01:57 18 feb 2011

This wiki page will document the design, missing features and implementation plan of a backup plan for Floss-Pa's site based on Drush. Feel free to contribute by adding missing steps, better implementation details or by contributing with code.

Ideal Steps

Ideally, the set of steps that should be executed in order to back up the Drupal site should be:

  1. Put the site in maintenance mode
  2. Tar and zip the whole drupal installation
  3. Dump the SQL Database for the whole drupal installation
  4. Tar and zip the SQL dump
  5. Get the site back online
  6. Move all backup data to a specific location
  7. Rotate backups ‡

‡ There are widely used rotation tools like log-rotate, so we could eventually check if we could incorporate rotation step as a module

Offsite Backups

The above steps will guarantee backups of the site will always exist on the server, but it is also required to have backups in at least two (physically) more different places. There's no offsite backup plan for the moment. Current list of volunteers to store offline backups are: