若要將行事曆資料匯出至檔案,請使用 csexport。您為輸出檔案指定的檔案副檔名 (.ics 或 .xml) 可決定使用何種格式。
例如,以 iCalendar (text/calendar MIME) 格式將行事曆 ID (calid) 為 jsmithcal 的行事曆匯出至名為 jsmith.ics 的檔案:
csexport -c jsmithcal calendar jsmith.ics
以 XML (text/xml MIME) 格式將行事曆 jsmithcal 匯出至名為 jsmith.xml 的檔案:
csexport -c jsmithcal calendar jsmith.xml