WP Staging Encryption Setup

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!

Prerequisites

Before proceeding with the encryption setup, ensure that you have the following:

  1. Activated and installed WP Staging Backup Plugin
  2. Access to your website’s wp-config.php file
  3. Knowledge of how to edit the wp-config.php file

Encryption Setup

Step 1: Open wp-config.php

  1. Using a text editor, navigate to the root directory of your WordPress installation.
  2. Locate the wp-config.php file and open it for editing.

Step 2: Add Encryption Constants

  1. Within the wp-config.php file, search for the section containing WordPress database settings.
  2. Below the database settings, add the following lines:
PHP
define('WPSTG_ENCRYPTION_KEY', 'YourEncryptionKey');
define('WPSTG_ENCRYPTION_SALT', 'YourEncryptionSalt');
  1. Replace 'YourEncryptionKey' and '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

  1. Save the wp-config.php file after adding the encryption constants.
  2. 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:

  1. Google Drive
  2. Amazon S3 and other S3-compatible providers
  3. DigitalOcean Spaces
  4. Dropbox
  5. (s)FTP

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:

PHP
define('WPSTG_ENCRYPTION_KEY', 'YourEncryptionKey');
define('WPSTG_ENCRYPTION_SALT', 'YourEncryptionSalt');

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.

Conclusion

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_KEY and 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.

Resources

Thank you for using the WordPress Backup Plugin. Happy backing up!

Updated on May 16, 2023