Setup guide
Restoring Data
Chapter 6 Backing Up and Restoring Data 55
Move the zip archive to another machine or removable medium. If possible,
encrypt the archive (do not use the private keys stored in your CMS server’s
database,sincethey maynotbeavailable whenyou needto restorethedata).Ifyou
copy t he archive to removable media such as tape or CD, make sure the copy is
kept in a limited-access, locked area.
Restoring Data
The purpose of creating back up archives, of course, is to allow you to restore a
previous state of the CMS server i nst ance after a hardware or software failure
corrupts your current state. The restore tool allows you to recover all or part of the
configuration that was backed up. For example, you can use the tool to restore just
the internal database of a CMS server instance.
A special case, automatic restore, allows you to completely restore the
configuration from the latest backup archive quickly and without interaction.
Before You Restore Data
Beforeyou canrestore from abackup archive,the archiveyou wantto usehas tobe
available on a disk accessible from the server instance directory. If you want to use
the automatic restore feature, you s hould put the archive in the output directory
where
cmsbackup originally created it (C:\Temp on Windows NT or /var/tmp on
UNIX).
Note the full path name to the backup archive; in the instructions later it will be
referred to as
<archive_path>. For example, on a UNIX system, the
<archive_path> might be
/var/tmp/CMS_cmsdemo_BACKUP-19991115093827.zip.
You can use the word
automatic instead of a path name to indicate the location of
thebackuparchive.Ifyouuse
automatic, the restore tool will read the file
logs/latest_backup to find the path name of the archive. This file is created by
cmsbackup and contains the name of th e last arch ive created. Note that automatic
always causes all data to be restored: you will not be able to select only a subset of
the data.
If you moved the zip archive to another machine or removable medium, copy it
back to the local file system. If you encrypted the archive, decrypt it before you try
to restore the data.