Skip to content

Tuning R1Soft policy on a busy cPanel server

How to tune R1Soft CDP frequency, retention, and exclusions on a cPanel host so backups complete on time without taxing live traffic.

Default R1Soft policies are tuned for general Linux servers, not for the read-and-write storm a busy cPanel host produces. Out of the box, backups take longer than they should, hit IO saturation during the window, and the recovery point retention grows beyond what the Backup Manager planned for. Tuning is necessary; the levers are predictable.

What’s happening

R1Soft policies define the schedule, retention, exclusions, and verification options. The CDP journal lives in /var/lib/cdp on the protected server and contains the changed-block stream. If the journal grows faster than the Backup Manager consumes it, IO on the cPanel host slows. If exclusions are missing, the journal fills with temporary file churn that never needed protection.

How to verify

Inspect the current policy state:

serverbackup-setup --status
cat /etc/r1soft-cdp/policies/*.policy
du -sh /var/lib/cdp
iostat -x 5
journalctl -u cdp-agent --since '1 day ago' | grep -iE 'error|warn|slow'

Pay attention to the journal growth rate relative to your backup frequency — if /var/lib/cdp grows 50 GB between hourly snapshots, the chunk size or the snapshot frequency is wrong.

The fix

  1. Exclude high-churn directories that don’t need protection: PHP session files (/home/*/tmp), WordPress object caches (wp-content/cache/), Composer/npm caches, Apache temp uploads. These produce volume without recovery value.
  2. Set CDP throttling on the agent. The --io-priority idle and --read-rate-limit flags slow the journal scan during business hours. Tune to keep iostat -x await column under 20ms during peak.
  3. Match policy frequency to recovery objectives. Hourly backups for a busy e-commerce host with a 1-hour RPO are correct; daily is enough for static brochure sites. Don’t run hourly out of habit.
  4. Configure retention separately from JetBackup if you run both. Don’t double-protect daily — R1Soft handles short-window restores; JetBackup handles structured account exports.
  5. Schedule weekly verification (r1soft-recover --verify) — it catches corruption in old recovery points before you need to restore from them.

Stack Harbor maintains and tunes R1Soft policies as part of environment management on cPanel fleets.