This document will guide you through setting up encryption for storing the database’s login data of supported storage providers. By following these instructions, you can enhance the security of your backup data.
Please note that encryption requires adding specific constants to your
wp-config.php file. Let’s get started!
Before proceeding with the encryption setup, ensure that you have the following:
- Activated and installed WP Staging Backup Plugin
- Access to your website’s
- Knowledge of how to edit the
Step 1: Open wp-config.php
- Using a text editor, navigate to the root directory of your WordPress installation.
- Locate the
wp-config.phpfile and open it for editing.
Step 2: Add Encryption Constants
- Within the
wp-config.phpfile, search for the section containing WordPress database settings.
- Below the database settings, add the following lines:
'YourEncryptionSalt'with lengthy combinations of different characters. Ensure these values are unique and not shared publicly.
Note: It is crucial to keep these encryption values secure and private. Make sure to store them in a safe location and avoid sharing them inadvertently.
Step 3: Save and Verify
- Save the
wp-config.phpfile after adding the encryption constants.
- Ensure there are no syntax errors or typos in the code you added.
Supported Storage Providers
The WP Staging WordPress Backup Plugin supports the following storage providers for encrypted login data:
- Google Drive
- Amazon S3 and other S3-compatible providers
- DigitalOcean Spaces
Setup Again the Storage Provider. Restoring the Encryption Key
If you migrated your website from one site to another using the WP Staging backup files, you might get the message “Please set up the storage provider XY…”. This means that the new site either does not have the keys WPSTG_ENCRYPTION_KEY and WPSTG_ENCRYPTION_SALT or the keys have changed.
In that case, open the wp-config.php from the site where you created the backup file and copy the lines that say:
Paste these lines into the wp-config.php of the new site and WP Staging can decrypt and use the storage provider’s login data again.
Congratulations! You have successfully set up encryption for storing the database’s login data of supported storage providers. This added layer of security helps safeguard your backup data. Ensure you keep the encryption constants (
WPSTG_ENCRYPTION_SALT) secure and confidential.
If you encounter any issues or need further assistance, please refer to the plugin’s official documentation or contact our support team.
Thank you for using the WordPress Backup Plugin. Happy backing up!