This is how the plugin backs up your website by itself: you switch on the first backup plan or create your own, with rhythm, time and targets.
What you need
- a usable target, that is, a target with a successful connection test: Which target suits you?
The first plan is already there
When you set up your first target, the plugin creates the plan “Daily backup”: daily at a random time, everything, this target, Max. backups 7. The plan is paused until you switch it on. Nothing runs just because the plugin is installed.
Step 1: Open the backup plans
Open the Backup page. In the Compact view, click Schedule backup. In the Extended view the tile Backup plans is always visible.
- Schedule backup brings up the tile Backup plans.
- Dismiss hides the tile again.
Step 2: Open the form
For a new plan, click Add plan. You change an existing plan via More …, then Edit. If the first plan suits you, continue with step 4.
- Name is required. The plugin suggests one. It can have at most 100 characters and must not be in use yet.
- Rhythm defines how often the plan runs.
- Time accepts hour and minute, the minute in steps of 15.
- Targets and rotation are the targets of the plan.
- 3-2-1 status: uses three lights to show how far the targets follow the 3-2-1 rule.
- Edit expands the group.
- Save
- Cancel closes the form without saving.
Step 3: Choose rhythm, time and targets
| Rhythm | What you choose with it |
|---|---|
| PROEvery 5 minutes, Every 10 minutes, Every 15 minutes, Every 30 minutes | nothing. Counting starts at midnight. These rhythms belong to cloneworx Backup Pro and need a system cron: Backups every 5 to 30 minutes. |
| Every hour, Every 2 hours, Every 4 hours, Every 6 hours, Every 12 hours | Minute. Counting starts at midnight: “Every 6 hours” runs in the hours 0, 6, 12 and 18. |
| Daily | Time |
| Weekly | Weekday and Time |
| Monthly | Day of the month (1 to 28 or Last day of the month) and Time |
0 to 14 minutes are added to the chosen time. The plugin picks them at random when the plan is created and keeps them: a plan with 03:15 starts at 03:22, for example. This way not all websites on a server start in the same minute. When you edit the plan, the actual start time is shown next to the time.
Under Targets and rotation you choose the target. A target that is not usable is grey in the list. The free version allows one target per plan. With cloneworx Backup Pro you add further targets with Edit and Add target … and give each one a rule: The 3-2-1 rule - the gold standard for backups.
Click Save. A new plan is paused.
Step 4: Switch on the plan
Click the switch in front of the plan.
- paused is shown at the switch as long as the plan is switched off. When it is switched on, it reads active.
- Paused, no backups are scheduled.
When you switch the plan on, the plugin calculates the next run from now. A plan that was paused for a long time therefore does not start the moment it is switched on.
After you switch the plan on, the dialog window Attention appears. It appears every time a plan is switched on.
- Attention is the title of the dialog window.
- A website that has no visitor around its times makes no backups. Therefore set up a system cron: Below it, the link Start backups on time: set up a system cron opens the guide in a new tab.
- OK closes the dialog window.
The active plan in the tile
- Add plan opens the form for another plan. In the free version one plan runs on schedule: Several active plans.
- The switch shows whether the plan is active or paused.
- The name of the plan, its rhythm with the start time and its targets.
- More … opens the menu with Edit, Run now and Delete.
- Next run shows the next scheduled run with date and time.
- The time zone of the website. All times are given in it.
Pause, change, delete
- Pause: set the switch back. Only the schedule is paused; you can start the plan by hand at any time: Create a backup right now.
- Change: More …, then Edit. If you change rhythm or time, the plugin recalculates the next run.
- Delete: More …, then Delete. After the confirmation prompt, the plan is deleted. Its backups are kept.
When a scheduled time is missed
The plugin checks whether a plan is due on every task source: on WP-Cron, on a system cron, as long as the Overview or Backup page is open, and at the end of every job. WP-Cron runs only when someone visits the website.
- If a task source runs within one hour of the scheduled time, the plan runs.
- If the scheduled time fell within a running job, or was no more than one hour past when that job started, the plan starts right after the job, its follow-up and other plans that are due.
- After that, the scheduled time counts as missed. The plugin does not make up for it: it starts nothing, writes a warning into the global log and moves on to the next regular time. The Extended view shows the missed time at the plan.
No backup without a task source
A website that has no visitor and no system cron around its scheduled times makes no backups. In that case set up a system cron: Start backups on time: set up a system cron.
If something does not work
| Message | What you can do |
|---|---|
| Switching on needs at least one usable target. | The switch stays on paused. The yellow line at the plan shows the target and the reason. Test the connection on the Targets page or choose another target. |
| Paused: the plan has no target. Choose a target to switch it on. | The target of the plan was removed. Choose a target in the form and switch the plan on again. |
| Only one plan runs on schedule. Pause the plan “…” first. | In the free version one plan runs on schedule, and the plan named in the message is already switched on. Pause it first or add cloneworx Backup Pro. |
| The last run could not start: … | The plan was due, but the backup could not be started. The reason follows the colon, and after it comes Run the plan by hand; the log has the details. The plan moves on to its next scheduled time. More on this: Backup plans: tile and form. |
Good to know
- Several due plans run one after the other, never at the same time.
- If the target of a plan is disconnected later, the plan still runs at its scheduled time. The backup then fails visibly in the list.
- The clock change does not shift the next run: the plugin always recalculates it from the rule.
See also
- Backup plans: tile and form
- Define what gets backed up
- Define how many backups are kept
- Start backups on time: set up a system cron
- Manage backup plans with WP-CLI
On the command line
WP-CLI not set up yet? How to install WP-CLI.
You also create plans with WP-CLI. You specify a plan by its ID (plan-1) or its name. A new plan is paused until you switch it on with resume.
# Show backup plans with state, next and last run wp cloneworx-backup plan list # Create a backup plan: daily at 03:15, target local-1 wp cloneworx-backup plan add --target=local-1 --rhythm=daily --time=03:15 --name="Nachts" # Enable the backup plan wp cloneworx-backup plan resume "Nachts" # Change frequency and time: Sundays at 22:00 wp cloneworx-backup plan edit "Nachts" --rhythm=weekly --weekday=7 --time=22:00 # Pause the backup plan wp cloneworx-backup plan pause "Nachts" # Show the schedule: next runs, due backup plans, last tick wp cloneworx-backup scheduler status