ccmsrv archive

This topic contains information about the ccmsrv archive command.

Synopsis

ccmsrv archive   -d|-device archive_device -l|-level archive_level
                [-size device_size] [-s|-server servername] [-y]

Description and uses

Use the ccmsrv archive command to archive a database server. Perform the archive as part of a backup plan that includes backing up the files under the Rational® Synergy database directories.

Note: Verify that you have a blank tape (or new file) for every archive. This command overwrites any previous archives on your tape (or file).

Also, if you use ccmsrv archive for metadata and a different tool for the file system, you must ensure that the backups are consistent. Ensure that the file system is inactive between the server archive and the file system backup.

For more information about archiving a database server, see Database server archiving and restoration overview and Schedules and scripts back ups.

You must run this command on the database server, as user informix.

Options and arguments

-d|-device archive_device

Specifies the archive device. The archive device must be a tape device name. After you specify the archive device with the -d option, that device becomes the default for both archive and restore commands. After you specify the default, you need not specify this parameter again unless you want to change the default.

-l|-level archive_level

Specifies the archive level: 0, 1, or 2.

-s|-server servername

Specifies the name of the database server. The default is the server on the current machine.

-size device_size

Specifies the size of the archive device in KB. After you specify the size with the -size option, that size becomes the default. The device size is typically the size of the tape if you use a tape device.

The default size is 10240 KB.

-y

Executes the command without displaying confirmation messages.

Example

Create a Level 0 archive for the database server using the/dev/rst0 device with a 1 GB tape.

$ ccmsrv archive -level 0 -size 1000000 -device /dev/rst0

The device you specify must be consistent with the type and capacity of tape.

Caveats

When you archive the server, be sure to back up the Informix® server configuration file as well. This file is necessary to run or restore the Informix server.

By default, this file is named servername, and servername is the server HOSTNAME. The server configuration file is in the $CCM_HOME/informix/etc directory.


Feedback