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

WordPress Backup

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


  • 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.

  2. Backup.profile 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.