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