Skip to content

Configure backups for your WordPress instance

Default daily backup

By default, every WordPress instance comes with a homemade mechanism that backups the database daily. This is done thanks to a CronJob daily executed in the background.

image-47.png

To access it, consider accessing the Database pod.

image-48.png

The resulting backup will be stored under /var/lib/mysql/data/backup/backup.sql.gz.

image-49.png

Note that this backup only stores the state of the database at a given time, and does not take into account those files uploaded nor the themes. This could be sufficient in some scenarios to restore a site, since those files can be recovered by a different procedure executed from the OKD4 infrastructure side, but it could be insufficient for others.

In order to retrieve the resulting backup, a user needs to use the OKD CLI console. See Install CLI for further information about how to install the OKD CLI console on a local computer. See also oc rsync --help for help about how to sync a folder inside a remote pod and your local computer.

Advanced backups

For those sites that need to have a proper backup mechanism, we suggest users using the UpdraftPlus Backup/Restore plugin for WordPress.

For questions related to this specific plugin, consider checking the UpdraftPlus Backup/Restore - Forum.

Refer to the 3-install-plugin.md procedure for installing this plugin.