This guide is specifically for use with cPanel and JetBackup generated backups that contain CCS plugin data.
This guide should only be used to repair CCS data for an account that had already been setup and working with the CCS plugin previously. This guide is not intended for any other use. Uses outside of this specific case may cause unsupported and unexpected problems.
1. First you must extract the
calendar_and_contacts/calendars folder from either a cPanel generated backup or a JetBackup generated backup. We have a guide that explains how you can extract files from these backups here:
2. After having extracted the CCS data that you want to restore, you should already be logged into your cPanel server as the root user via SSH or Terminal. As the root user via SSH or terminal, now use the cd command to change to the ccs directory:
3. If you would like to restore all of the CCS data within a directory, you may use the following command. Be sure to update the path to your ccs data before running the command:
/opt/cpanel-ccs/bin/calendarserver_import -d /PATH/TO/YOUR/DATA/calendar_and_contacts/calendars/
Notice that when using the -d flag to restore the entire directory of data, you will specify the calendars directory specifically.
4. If you would like to only restore individual ICS files, you may do so with the -i flag:
/opt/cpanel-ccs/bin/calendarserver_import -i /path/to/your/file.ics
It is important to keep in mind that the meta data within the files tell CCS where to store the data and what account it will be stored to.