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:
- WordPressBackup.sh
- the main script that does all the heavy lifting.
- Backup.profile
- the configuration profile that manages the retention policy
How to use:
- Download the script.
- Copy and Modify the backup.profile.
- Place backup.profile in the directory above your WordPress install or /home/username/
- chmod +x WordPress-Backup
- ./WordPress-Backup Depending on where you put your backup.profile you may need to modify the main script's FINDDIR.