Backup Script for WordPress that runs with a server level cron job.
Switch branches/tags
Nothing to show
Clone or download
jamesrascal
jamesrascal Add CHMOD command
Added a CHMOD 600 to the completed backup. Thank to ilushechkin.
Latest commit 2b876ab Aug 7, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit May 6, 2014
README.md Update README.md Jul 15, 2014
WordPressBackup.sh Add CHMOD command Aug 6, 2014
backup.profile Update backup.profile Jul 15, 2014

README.md

WordPress Backup

This script is designed to backup any number of WordPress sites without the use of a plugin.

Features:

  • Server Level Backups.
  • Easy to intergrate RSync or FTP to transfer to remote server.
  • Combines SQL Database and Only the WordPress files for easy restores.
  • Can be set on a cron job.

You currently need two scripts downloaded to the server.

  1. WordPressBackup.sh
  2. Backup.profile

WordPressBackup.sh is the main script that does all the heavy lifting. Backup.profile is what tells the script which directory to backup and how long to keep those backups.

How to use:

  1. Download the script.
  2. Copy and Modify the backup.profile.
  3. Place backup.profile in the directory above your WordPress install or /home/username/
  4. chmod +x WordPress-Backup
  5. ./WordPress-Backup Depending on where you put your backup.profile you may need to modify the main script's FINDDIR.