Sun Java System Calendar Server 6.3 Administration Guide

17.2 Restoring Calendar Server Data

The csrestore utility restores the calendar database, individual calendars, or a user’s default calendar that was saved using csbackup. You must run the csrestore utility on the local machine where Calendar Server is installed, and you must first stop Calendar Server. (Calendar Server can be running, however, when you backup the database.)

This section describes:

ProcedureTo Restore the Calendar Database

  1. Log in as the database owner (icsuser).

  2. To restore a calendar database that was saved to a backup directory using the csbackup utility, use the csrestore utility database command.

    For example, to restore the calendar database that was saved to a backup directory named backupdir:

    csrestore database backupdir

ProcedureTo Restore a Calendar From a Backup Directory

  1. Log in as the database owner (icsuser).

  2. To restore a specific calendar from a database that was saved to a backup directory using the csbackup utility, use the csrestore utility database command with the -c option.

    For example, to restore the calendar jsmithcal@sesta.com from the backup database directory backupdir:

    csrestore -c jsmithcal@sesta.com calendar backupdir

ProcedureTo Restore a Calendar From a File

  1. Log in as the database owner (icsuser).

  2. To restore a specific calendar that was saved to a backup file using the csbackup utility, use the csrestore utility calendar command with the -c option.

    The filename extension (.ics or .xml) of the backup file indicates the format in which the calendar was saved.

    For example, to restore the calendar jsmithcal@sesta.com that was saved in iCalendar (text/calendar MIME) format to the file jsmith.ics located in the backupdir directory:

    csrestore -c jsmithcal@sesta.com calendar backupdir/jsmith.ics

    Or, to restore the calendar jsmithcal@sesta.com that was saved in XML (text/calendar MIME) format to the file jsmith.xml located in the bcakupdir directory:

    csrestore -c jsmithcal@sesta.com calendar backupdir/jsmith.xml

ProcedureTo Restore a User’s Default Calendar

  1. Log in as the database owner (icsuser).

  2. To restore a user’s default calendar that was saved to a backup file using the csbackup utility, use the csrestore utility defcal command.

    The filename extension (.ics or .xml) of the backup file indicates the format in which the calendar was saved.

    For example, to restore the default calendar for user jsmith@sesta.com that was saved in iCalendar (text/calendar MIME) format to a file named jsmith.ics located in the backup directory backupdir:

    csrestore -a jsmith@sesta.com defcal backupdir/jsmith.ics

    To restore the default calendar for jsmith default calendar that was saved in XML (text/xml MIME) format to a file named jsmith.xml located in the backup directory backupdir:

    csrestore -a jsmith@sesta.com defcal backupdir/jsmith.xml