With cloneworx Backup Pro a plan runs every 5, 10, 15 or 30 minutes. There is then at most this span between two backups, for example for the database of a shop with ongoing orders.
This feature belongs to cloneworx Backup Pro: Installation · Order
What you need
- a system cron that runs every five minutes: Start backups on time: set up a system cron. The scheduler built into WordPress runs only when someone visits the website.
Step 1: Choose the rhythm
Open the plan with More … and Edit, or create a new one with Add plan. Open Rhythm:
- Every 5 minutes is the shortest rhythm.
- Every 30 minutes is the longest rhythm under one hour.
Step 2: Read the notice
When you choose one of these rhythms, the dialog Attention appears:
- Attention is the title of the dialog.
- Backups every 5, 10, 15 or 30 minutes require a system cron. The scheduler built into WordPress cannot always guarantee this rhythm.
- Start backups on time: set up a system cron opens the guide in a new tab.
- The second paragraph strongly recommends backing up only the database at this rhythm: file backups this often can put so much load on the server that the website becomes noticeably slower for visitors. It does not appear when the plan backs up only the database.
- OK closes the dialog.
Step 3: Set content and retention
- What is backed up: in the Extended view, choose only Database, as the dialog recommends. A second plan backs up the files, for example daily: Several active plans.
- Retention: Max. backups 7 keeps the backups of the last 35 minutes with Every 5 minutes. The retention by age reaches further back: Retention by age.
Click Save and switch the plan on in the tile.
What applies
- There are no fields for the time and no random offset. Starting at midnight, the runs are spaced at the interval of the rhythm: Every 15 minutes means 00:00, 00:15, 00:30 and so on.
- With cloneworx Backup Pro, WP-Cron triggers the plugin every 5 minutes instead of every 15 minutes.
- Only one job runs at a time. If a plan is due while another job is running, it starts right after it.
- Further targets of the plan can receive a copy less often, for example only the first run of each hour or each day: The 3-2-1 rule - the gold standard for backups.
Without cloneworx Backup Pro
The entries Every 5 minutes to Every 30 minutes are grey in the list with a lock and the sign PRO and cannot be selected. The shortest rhythm is then Every hour. A plan that already has one of these rhythms stays switched on and does not run. Its row says Does not run on schedule: the rhythm of this plan needs cloneworx Backup Pro.
See also
- Backup plans: tile and form
- Start backups on time: set up a system cron
- What cloneworx Backup Pro can do
On the command line
WP-CLI not set up yet? How to install WP-CLI.
wp pro-plan also accepts for --rhythm 5m, 10m, 15m and 30m. The command warns with the same wording as the dialog and creates the plan anyway.
# Back up only the database every 15 minutes wp pro-plan add --targets=sftp-1 --rhythm=15m --roots=db --name="Datenbank" # Enable the backup plan wp cloneworx-backup plan resume "Datenbank"