The csimport utility imports a calendar from a file in iCalendar (ics) or XML format that was saved with the csexport utility. Commands are:
calendar – Imports a specified calendar.
version – Displays the version number of the utility currently installed.
Date calculations for importing a calendar’s components use the time zone specified in the X-NSCP-DTSTART-TZID associated with the component. If none is present, then the server time zone found in the ics.conf is used.
You must run the utility locally on the machine where Calendar Server is installed.
Calendar Server can be running or stopped.
You must be logged in as the user and group under which Calendar Server is running (such as icsuser and icsgroup) that was specified during installation, or as root.
csimport [-v|-q] -c calid calendar inputfile |
The following table describes the commands available for the csimport utility.
Table D–20 csimport Utility Commands
The following table describes the csimport utility command options.
Table D–21 csimport Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-c calid |
The calendar ID of the calendar to import. This option is required with the calendar command. If the specified calendar ID already exits, the imported data is merged with the current calendar. There is no default. For more information, see Creating Calendar Unique Identifiers (calid's). |
Import the calendar with the calendar ID tchang from the file tchang.ics and expect iCalendar (text/calendar file) format:
csimport -c tchang calendar tchang.ics
Import the calendar with the calendar ID tchang from the file tchang.xml and expect XML (text/xml file) format:
csimport -c tchang calendar tchang.xml