With cloneworx Backup Pro a plan gets rules of its own that apply only to this plan, in addition to the exclusions of the website.
This feature belongs to cloneworx Backup Pro: Installation · Order
What for
The exclusions on the Settings page apply to every plan. With exceptions per plan, two plans back up different things: a daily plan, for example, leaves out the images in the uploads, a monthly plan backs them up as well. The daily backup becomes smaller and faster that way.
How to set it up
Open the plan in the Extended view with More … and Edit. Next to What is backed up, click Edit, then in the line Exceptions for this plan click Edit:
- Exceptions for this plan with the number of rules of this plan.
- Show less collapses the text field.
- The text field for the rules of this plan, one rule per line. Above it: One rule per line, in addition to the exclusions under Settings/Exclusions. Rules as in .gitignore, relative to the roots of this plan, for example wp-uploads/**/*.jpg for all JPG files anywhere in the uploads.
Enter one rule per line and click Save. The same forms are allowed as for the exclusions of the website: Define what gets backed up.
What applies
- A plan has at most 50 rules of its own.
- A backup stores the rules that applied to it. A restore of this backup leaves the entries these rules match untouched on the website.
- If the plugin rejects a rule, the reason appears below the text field, for example Line …: … with only one * is allowed.
- If cloneworx Backup Pro is missing or its licence is not valid, the rules stay saved in the plan, and every run of the plan ends with an error and backs up nothing: The plan has exceptions of its own, but cloneworx Backup Pro is not active or its licence is not valid. Nothing was backed up. If you then save the plan in the form, the plugin removes the rules from the plan.
Without cloneworx Backup Pro
In the group What is backed up, the Pro marker appears in place of the line: Exceptions for this plan with a lock and the sign PRO.
See also
On the command line
WP-CLI not set up yet? How to install WP-CLI.
wp pro-plan accepts the rules with --exclusions, separated by commas; an empty value removes them.
# Show the exceptions of all plans wp pro-plan list # Create a daily plan without JPG files of the uploads wp pro-plan add --targets=local-1 --rhythm=daily --time=03:15 --name="Ohne Bilder" --exclusions="wp-uploads/**/*.jpg" # Replace the exceptions of a plan wp pro-plan edit "Ohne Bilder" --exclusions="wp-uploads/**/*.jpg,wp-uploads/**/*.png" # Remove the exceptions of a plan wp pro-plan edit "Ohne Bilder" --exclusions=""