📁Duplicating a Backup Schedule with Cpremote

Creating and managing multiple backup schedules with Cpremote is straightforward. You can duplicate any existing schedule directly from the server terminal, allowing you to fine-tune your backup configurations for different use cases.


Step 1: Create a Default Schedule

  1. Login to WHM or cPanel as root.
  2. Navigate to:
    WHM > Plugins > Cpremote Backup > Schedule Backups > Create Default Schedule
  3. Configure your backup preferences:
    • Frequency: Daily, Weekly, Monthly
    • Retention: Number of backups to keep
    • Storage Pools: Choose destination (local or remote)

Once saved, the schedule is stored as a JSON file under /etc/cpremote/schedule/.


Step 2: Duplicate the Schedule File

  1. Access your server via SSH or use WHM Terminal.
  2. Copy the existing schedule file: cp -v /etc/cpremote/schedule/oldid.json /etc/cpremote/schedule/newid.json Replace oldid with the ID of the schedule you want to copy and newid with a unique ID for the new schedule.

Step 3: Rebuild the Schedule Cron Job

To make Cpremote recognize the new schedule:

/usr/local/cpremote/bin/cpremotectl build schedule

Cpremote will now apply the new schedule using your customized settings.


Deleting a Custom Schedule

To delete an unwanted backup schedule:

rm -v /etc/cpremote/schedule/replaceid.json

Replace replaceid with the ID of the schedule you want to remove.


Notes

  • Always ensure each schedule ID (newid.json) is unique.
  • You can create multiple backup routines tailored to different users, directories, or destinations using this duplication method.
Scroll to Top