Sun Java System Calendar Server 6 2005Q4 Administration Guide

Syntax


csrestore [-v|-q] 
          [-f] 
          database inputdir

csrestore [-v|-q] 
           -c calid 
          calendar inputfile

csrestore [-v|-q] 
           -a userid
          [-b basedn] 
          defcal inputfile

The following table describes the commands available for the csrestore utility.

Table D–30 csrestore Utility Commands

Command  

Description 

database inputdir

Restore the calendar database from the specified input directory or input file that contains a backup calendar database. This operation overwrites all previous contents of the current calendar database. 

calendar inputfile

Restore the specified calendar ID from the specified input file. The data format of the file is determined by the filename extension: 

  • .ics for iCalendar (text/calendar).

  • .xml for XML (text/xml).

    If the specified calendar ID already exists, the calendar's data is cleared before it is restored.

defcal inputfile

Restore the default calendar of the specified user ID from the input file specified. The data format of the file is determined by the filename extension: 

  • .ics for iCalendar (text/calendar).

  • .xml for XML (text/xml).

version

Display the version of the utility. 

The following table describes the csrestore utility command options.

Table D–31 csrestore 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: 

  • Display no information if the operation is successful (errors, if they occur, are displayed).

  • Suppress confirmation prompting for dangerous commands.

    Default is off.

-a userid

The user ID to restore. This option is required with the default option. There is no default. 

-b basedn

The LDAP base DN (distinguished name) to be used for the specified user ID. The default is taken from the setting local.ugldapbasedn defined in the ics.conf file. 

-f

To force any existing database files to be deleted. 

-c calid

The calendar ID to restore. This option is required with the calendar command. There is no default.

For more information, see Creating Calendar Unique Identifiers (calid's).