--- title: Backup your WordPress --- # How to Backup Your WordPress files and Databases to Object Storage. ## Introduction: Backup copies of your WordPress files and database allow data to be restored from an earlier point in time, helping businesses recover from unplanned events. Storing copies of the data on a separate medium is critical to protect against primary data loss or corruption. In this tutorial, we will walk through the steps involved in backing up and restoring your WordPress files and database using the UpdraftPlus plugin for WordPress. ## Prerequisite: - WordPress Version 3.2 or later - Access to the MyAccount Portal. ### Step 1: Create a Bucket in Object Storage First, create a bucket where you will back up your WordPress files and database. Select **Object Storage** from the left panel in the Product section, and click on **Add Bucket**. In this tutorial, we are creating a bucket named **backupe2e**. ### Step 2: Grant Admin Access Permission for Your Bucket To backup and restore your data from WordPress, attach an access key to your bucket with bucket admin access. This option is available under the **Permission** section of your bucket. Click on **Attach access key**. You can select an existing key if you already have one or create a new one. Here we are creating a new access key called **wordpresskey**. After generating the key, note down the **access key** and **secret key**, as we will use them later in the WordPress plugin to backup and restore. Grant **Bucket Admin** access permission to the key and attach it to your bucket. ### Step 3: Install and Activate the UpdraftPlus Plugin in WordPress UpdraftPlus simplifies backups and restoration. It’s the world’s highest-ranking and most popular scheduled backup plugin, with over three million active installs. Backup your files and database backups to the cloud and restore with a single click! You can skip these steps if you’ve already activated the plugin. If not, follow the steps below: - Go to the **WordPress Plugin Directory** and search for **UpdraftPlus**. - Click on **Install Now**. - After the plugin has been installed, click on **Activate**. ### Step 4: Configure Backups to Object Storage Buckets After installing and activating the UpdraftPlus plugin, you need to configure it to backup to the object storage bucket created earlier in Step 1. Go to **Settings -> UpdraftPlus Backup -> Settings**. Scroll down to the **Remote Storage** option, and select **S3-Compatible Generic**. ![wb9](images/wb9.png) Next, update your bucket and key details: - Add the **S3 access key** and **S3 secret key**. - In the **S3 Location** option, add your bucket name. - In the **S3 endpoint**, enter `objectstore.e2enetworks.net`. ![wb10](images/wb10.png) Once the details have been added, click on **Test S3 Settings**. If the connection is successful, you’ll see the following output. ![wb11](images/wb11.png) Scroll down further and save the changes made. ![wb12](images/wb12.png) ### Step 5: Backup Your Data to Object Storage After successfully updating the configuration, we will test the backup and restore it to our bucket in the UpdraftPlus plugin. Go to the UpdraftPlus plugin, select the **Backup/Restore** tab, and click on **Backup Now**. ![wb13](images/wb13.png) A backup options window will pop up. Ensure **Send this Backup to Remote Storage** is ticked. ![wb14](images/wb14.png) Once the backup is successfully completed, you’ll see the following output. ![wb15](images/wb15.png) Scroll down to view the details of the latest backups available. ![wb16](images/wb16.png) You can also verify the backup data is now available in your bucket by refreshing the object storage portal. You will be able to view the backed-up data. ![wb17](images/wb17.png) ### Step 6: Restoring Your Data to WordPress To restore your data, click on the **Restore** button. ![wb16](images/wb16.png) Select the necessary options for restoring and proceed. ![wb18](images/wb18.png) Once the restoration is completed, you will see the following output. ![wb19](images/wb19.png) ## Conclusion: With the steps outlined above, you can easily backup and restore your files and database to an object storage bucket. Additionally, you can configure timely backups and include/exclude files and folders under the settings. ---