jamesrascal / wordpress-backup

Backup Script for WordPress that runs with a server level cron job.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordPress Backup

This lightweight script is designed to backup any number of WordPress sites without the use of a plugin. This backup script is using tar and bash to acomplish a full backup of your WordPress sites. Multiple sites can be backed up by creating additoinal backup profiles.

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.

Update: 2022 Works with latest wordpress (Stable release: 6.0 / 24 May 2022)

There are 2 parts to this script:

  1. WordPressBackup.sh
    • the main script that does all the heavy lifting.
  2. Backup.profile
    • the configuration profile that manages the retention policy

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.

About

Backup Script for WordPress that runs with a server level cron job.

License:GNU General Public License v2.0


Languages

Language:Shell 100.0%