With cloneworx Backup Pro a plan stores its backups at several targets. This lets you follow the 3-2-1 rule, the gold standard for data backups: three copies of your data on at least two kinds of storage, one of them in a different building.
This feature belongs to cloneworx Backup Pro: Installation · Order
The 3-2-1 rule
Three copies of your data on at least two kinds of storage, one of them in a different building. In the form of a plan, 3-2-1 status: shows with three lamps how far its targets follow this rule: copies, kinds of storage and off-site. What green, yellow and red mean is in Backup plans: tile and form.
Step 1: Create the targets
On the Targets page, create the targets the plan should receive: Which target suits you? For FTP, SFTP, WebDAV and S3-compatible storage you specify in the field Location whether the target is at the same location as the website or at another one. Amazon S3, Google Drive and Dropbox always count as off-site, a local folder never does.
Step 2: Add the targets to the plan
Open the plan with More … and Edit. Next to Targets and rotation, click Edit and add the further targets with Add target ….
- The term with the dotted underline, Targets and rotation shows a tooltip about the 3-2-1 rule.
- 3-2-1 status: with the three lamps.
- One line per target with its name and kind: local, remote, remote, off-site or remote, location not specified.
- The first target receives every run: its rule Every run (…) with the rhythm of the plan cannot be changed.
- The rule of a further target.
- Remove target takes the target out of the plan.
- Add target … adds a further target to the plan.
- Show less collapses the group.
Step 3: Give each target a rule
You can choose Every run (…) and every span that is longer than the rhythm of the plan, from Every 10 minutes to Monthly. With a span the target receives only the first run of each span, so with Weekly the first run of each week. The spans in hours count from midnight. Then click Save.
An example
| Target | Kind | Rule |
|---|---|---|
| Local folder 1 | local | every run, daily |
| SFTP 1, in another data centre | remote, off-site | every run, daily |
| Amazon S3 1 | remote, off-site | Weekly |
The plan runs daily. That makes three copies on three kinds of storage, two of them off-site: all three lamps are green.
What applies
- Retention per target: Max. backups and the tiers of the retention by age apply to each target separately. With 7, the object storage in the example keeps the backups of seven weeks, the two other targets those of seven days.
- The list of backups shows for each backup the targets it went to.
- Progress: during the transfer the display shows the target and its position, for example “Transferring to SFTP 1 (2 of 3)”.
- The first target always receives every run. If you want another target that receives every run to come first, remove the first one and add it again afterwards.
Without cloneworx Backup Pro
The free version allows one target per plan. The group Targets and rotation is a dropdown menu there, and below it is the Pro marker 3-2-1 gold standard and rotation. 3-2-1 status: shows the lamps there, too. If a plan has several targets and cloneworx Backup Pro is missing or its licence is not valid, every run goes to the first usable target only and ends with a warning that names the other targets: Without cloneworx Backup Pro this plan backs up to one target only. No backup went to: …. Save the plan in the plan editor with the target you want, or activate cloneworx Backup Pro with a valid licence.
See also
On the command line
WP-CLI not set up yet? How to install WP-CLI.
wp pro-plan takes the targets of the plan with --targets, the first one first. A new target receives every run until you give it a rule with --rules or in the form.
# Three targets for the plan, local-1 receives every run wp pro-plan edit "Daily backup" --targets=local-1,sftp-1,amazon-s3-1 # Give the target amazon-s3-1 the rule Weekly wp pro-plan edit "Daily backup" --rules=amazon-s3-1:weekly # Show the plans with their targets wp cloneworx-backup plan list