CMS Backup

Backing up the whole site

Member for

1 year 5 months
Submitted by AlReaud on Wed, 01/18/2012 - 20:52

Revised: 2016-09-03, Al Reaud, Happy Cat Technologies

The following script integrates backing up the database with backing up the site code. Please note that descriptions place-hold for actual values in the script. Those actual values must be edited in, depending on your site configuration, for the script to work.

This script is adapted from the updated fullsitebackup.sh script created by Bristolguy on Drupal.org. This script is currently operational on Ubuntu 16.04, and has not been tested on other versions of Linux.

The shell script is available here for your convenience, demo.full_site_backup.sh.txt.

full_site_backup.sh

Backing up the CMS Database

Member for

1 year 5 months
Submitted by AlReaud on Wed, 01/18/2012 - 19:51

Revised: 2016-09-12, Al Reaud, Happy Cat Technologies

The CMS database is the heart of any content management system. It's loss or damage will result in the loss and or damage of all of your hard work, and that of your commentators, posters, and contributors. Below, are two scripts that complement each other, one backs up the database into a SQL file, the other restores it from a SQL file.