To export and import calendar data to and from a file, use the csexport and csimport utilities. The calendar data can be in either iCalendar (.ics) or XML (.xml) format.
You must run csexport and csimport locally on the machine where your Calendar Server is installed. Calendar Server can be either running or stopped.
To import calendar data from a file previously saved using the csexport utility, use csimport. The file name extension of the import file (.ics or .xml) indicates the format in which it was saved.
For example, to import calendar data to the calendar ID (calid) jsmithcal@sesta.com from the file jsmith.ics that was saved in iCalendar (text/calendar MIME) format:
csimport -c jsmithcal@sesta.com calendar jsmith.ics
To import data into the calendar jsmithcal@sesta.com from a file named jsmith.xml that was saved in XML (text/xml MIME) format:
csimport -c jsmithcal@sesta.com calendar jsmith.xml
To export calendar data to a file, use csexport. The file name extension (.ics or .xml) that you specify for the output file determines which format is used.
The following examples show how to use the export utility:
To export the calendar with the calendar ID (calid) jsmithcal@sesta.com in iCalendar (text/calendar MIME) format to a file named jsmith.ics:
csexport -c jsmithcal@sesta.com calendar jsmith.ics
To export the calendar jsmithcal@sesta.com in XML (text/xml MIME) format to a file named jsmith.xml:
csexport -c jsmithcal@sesta.com calendar jsmith.xml