How To Backup WordPress via BackWPup
These instructions are specifically for Peaceful Media servers, using client GAJDA / Raiseyourvalue.com as an example.
1/ Login to Server:
- Create a folder called “_back” one level above “public_html”
- Set this folder’s permissions to 777
Notes from Lawrence:
On our servers, you’ve gotta create the backup folder yourself (vs. having the plugin do it automatically – cb), and set it to perms of 777. Thus, files within it becoming 666 (no offense intended, that’s just the octal way of things 😉 This a GOOD thing. The webserver cannot write to anywhere, unless we tell it that it can 😉
We like to store the backups *outside of* the public_html directory, as that makes things simpler, and avoids recursion issues when doing auto/manual backups.
2/ Login to WordPress:
- Download the plugin BackWPup https://wordpress.org/plugins/backwpup/
- Install and activate
- Create 2 jobs – one for backing up files weekly, and the other for backing up database daily.
- Create first “Job” to backup the files weekly:
- Follow these settings as a guide on the “General” tab
- Name it
- Check File backup and Installed plugins list
- Append file name so it’s easy to distinguish between db and file back ups on the server
- Archive format leave as-is
- Back up to Folder
- Add client’s email (not shown in photo – I didn’t add the client’s email while I was testing the setup)
- and click the box to send only if there’s an error.
- “Schedule” tab
- Start job with WordPress cron
- Weekly (day of choice / time of choice)
- “Files” and “Plugins” tabs – default settings are fine – but tweak if needed
- “To: Folder” tab
- This is where you tell the plugin to save the backups on the server.
- This is the folder you created called “_back”
- The path should be “/home/USERNAME/_back/
- Keep the number of file backups low since they can get large
- Save Changes!
- Do this process again, but this time create a Daily Database backup job.
- Create New Job
- “General” tab
- Check Database backup only for this job
- Append file name
- the rest of the settings are the same as the first job (“backup to folder” – add client email and check the box for sending errors only)
- “Schedule” tab
- WordPress cron
- Daily, time preference
- “DB Backup” leave as default
- “To: Folder”
- same path as previous job, but leave default number for number of files to keep.
- Save changes
- Now run each job to test, and make sure the files show up in the _back folder on the server
If the files were saved to the _back folder, you’re done! Whoo hoo!!!
Thanks for setting up a backup schedule for the client’s site!