With cloneworx Backup Pro a plan encrypts its backups. Anyone with access to the target cannot read an encrypted backup.
This feature belongs to cloneworx Backup Pro: Installation · Order
What it is for
A backup contains the database and the files of your website. If it is stored with a storage provider, anyone who has access to that target or finds a copy can read it. An encrypted backup can only be opened with a key.
What is encrypted
- Encryption is a setting of the plan and applies to all targets of the plan.
- Encrypted are the content of the backup, the list of all files with their paths and the details of the info file: the address of the website, the tables, the paths, the exclusions.
- The name and times of the backup, the trigger, the kinds of content, the version of the plugin, the number and sizes of the parts with their checksums and the status stay open. That is why you can check without a key whether a backup at the target is complete.
- To encrypt, the server needs the PHP extension sodium.
The two keys
| Key | Where it is kept | What it is for |
|---|---|---|
| Key of this website | In the database, protected like the stored passwords of the targets. Without the wp-config.php of this website it cannot be opened. | The website uses it to read its own backups without asking. |
| Recovery key | Nowhere. The plugin shows it once during setup. | It opens the backups when the website is lost, on another website or after the security keys in the wp-config.php have changed. |
Without the recovery key an encrypted backup cannot be opened once the website is lost. Nobody can get the key back, not even cloneworx. Keep it outside the website, for example in a password manager or printed.
The recovery key consists of eleven groups of five characters. When you enter it, upper and lower case, spaces and hyphens do not matter. The letter O counts as zero, I and L count as one.
Step 1: Set up the recovery key
- Open the Settings page and unfold the Backup encryption tile.
- Click Set up. The dialog window Recovery key shows the key and below it in red: This key is shown only now and is stored nowhere. Without it, an encrypted backup cannot be opened once this website is lost.
- Save the key with Copy, Save as file or Print.
- Tick I have stored the key in a safe place. and click Continue.
- Enter the key once and click Confirm. Only then is the key in effect.
- The recovery key: eleven groups of five characters.
- The note in red: the key is shown only now and is stored nowhere.
- Copy puts the key on the clipboard.
- Save as file downloads the key as a text file.
- Print opens the print dialog of the browser.
- I have stored the key in a safe place.
- Continue is disabled until the checkbox is ticked.
- Cancel discards the key.
The page reports The backup encryption is set up. Switch it on in the plan. The tile reads Recovery key set up on ….
Cancel in the dialog window discards the key shown. Back leads from the input to the key shown.
Step 2: Switch on encryption in the plan
On the Backup page, open the plan with More … and Edit. Switch on Encrypt backups and click Save. The tooltip at the setting says: Encrypts every backup of this plan at all its targets. To open a backup without this website you need the recovery key.
- Encrypt backups
From the next run on, every backup of this plan is encrypted. Earlier backups stay as they are. In the list of backups, an encrypted backup has a key in front of its date, with the tooltip Encrypted: this backup can only be opened with the key of this website or with the recovery key. If this website has no key for the backup, the tooltip reads: Encrypted: this website has no key for this backup. It can only be restored after “Enter recovery key”.
If encryption is not ready, the plan does not start. The run ends with an error and names what is missing. In that case the plugin never writes an unencrypted backup.
| Message below the setting in the plan | What you do |
|---|---|
| The backup encryption is not set up yet (Settings → Backup encryption). Until then this plan cannot run. | Set up the recovery key, see step 1. |
| The licence of cloneworx Backup Pro is not valid. Without it this plan cannot run; nothing is written unencrypted instead. | Renew the licence or switch off Encrypt backups. |
Opening a backup for which the website has no key
After the website was lost, on another website or after the security keys in the wp-config.php changed, the website has no key for an encrypted backup. Then you need the recovery key:
| Action | What happens |
|---|---|
| Restore | The pre-check stops at the point Backup readable and complete, and the dialog window Encrypted backup asks for the recovery key. After you entered it, the pre-check runs again. |
| Check backup | The check reads what needs no key: whether all files are there, their sizes and the checksum of every part. It does not read the content. The message reads: Check: a backup is encrypted and this website has no key for it. Its files are complete; its content was not read. Enter the recovery key in the menu of the backup and check again. |
| Import | The import needs no key. The plugin asks for it only at the restore. |
The menu More … of such a backup contains Enter recovery key. The entry opens the dialog window Encrypted backup: This backup is encrypted and this website has no key for it. Enter the recovery key. Enter the key and click Open backup. After that it reads The backup is open now. It can be checked and restored.
Entering the key opens exactly this one backup. The website remembers the key of this backup, so it asks only once per backup. It never stores the recovery key itself. If the website has a key for the backup, the entry is missing from the menu.
| Message when you enter the key | Meaning |
|---|---|
| This is not a recovery key: it has eleven groups of five characters. | The text does not have the form of a recovery key. |
| This recovery key is not valid: at least one character is wrong. Check your input for typing errors. | The form is right, but at least one character is wrong. |
| This recovery key does not belong to this backup. | The key is valid but belongs to other backups, for example to an earlier or later recovery key. |
| This is not the key that was just shown. | During setup only: what you entered to confirm differs from the key shown. |
Creating a new recovery key
New recovery key in the Backup encryption tile creates another key, in the same way as during setup. New backups are then opened by the new key. The dialog window says: Backups made so far can still be opened only with the previous recovery key; keep that one too.
When the licence ends
- A plan with Encrypt backups no longer runs. Every run ends with an error: The plan encrypts its backups, but the licence of cloneworx Backup Pro is not valid. Nothing was written unencrypted.
- In the form of the plan the Pro marker replaces the switch. To back up without encryption, save the plan in the form: this removes the switch together with every other setting of cloneworx Backup Pro from the plan. The encryption can be switched on again only with a valid licence.
- Earlier encrypted backups can still be checked and restored as long as cloneworx Backup Pro is active.
Without cloneworx Backup Pro
- In the plan and in the Backup encryption tile there is the Pro marker: Encrypt backups with a lock and the sign PRO.
- If cloneworx Backup Pro is deactivated or deleted, a plan with encryption no longer runs: The plan encrypts its backups, but cloneworx Backup Pro is not active. Nothing was written unencrypted.
- Encrypted backups stay in the list with their key sign. You can import and delete them.
- Check backup checks the files of an encrypted backup and reports: Check: a backup is encrypted. Its files are complete; its content was not read, because cloneworx Backup Pro is not active.
- A restore stops in the pre-check: the backup is encrypted; opening it needs the plugin cloneworx Backup Pro
- The key of this website stays stored. As soon as cloneworx Backup Pro is active again, the website opens its backups as before.
Strict mode
In strict mode the website cannot open its new backups itself. Every check of the content and every restore then needs the recovery key, and an opened backup stays open for one day only. Strict mode can only be switched on the command line. If it is on, the tile reads in yellow: Strict mode is on: this website cannot open its new backups itself.
What encryption does not do
- It does not encrypt the connection to the target. The target itself takes care of that, with https or SFTP.
- It does not hide that a backup exists, when it was made, how large it is and which kinds of content it holds.
- It does not protect the running website. Whoever controls the website reads its data directly.
See also
- The “Settings” page
- Backup plans: tile and form
- Check a backup
- Restore the website from a backup
- What cloneworx Backup Pro can do
On the command line
WP-CLI not set up yet? How to install WP-CLI.
The commands belong to cloneworx Backup Pro.
# Show whether encryption is ready or what is missing wp pro-encryption status # Create a recovery key (shown once) wp pro-encryption setup # Confirm the key; plans encrypt only after this wp pro-encryption confirm "<key>" # Switch strict mode on or off wp pro-encryption strict on wp pro-encryption strict off # Open a backup for which the website has no key wp pro-encryption unlock <backup> --key="<key>" # Switch the encryption of a plan on or off wp pro-plan edit "Nachts" --encrypt=yes wp pro-plan edit "Nachts" --encrypt=no