The ccmsrv archive command archives a database server.
Synopsis
ccmsrv archive /l|/level archive_level /d|/device archive_device
[/size device_size] [/y]
Uses
For a full discussion of this command and instructions for archiving a database server, see Database server archiving and restoration overview.
Note: Ensure that you have a blank tape for every archive. This command overwrites any previous archives on your tape.
The users for this command are Informix-Admin group member and local administrator.
Satisfy the following prerequisites:
- Run this command on the machine where the Informix® server resides.
- Use this command as part of a backup plan that includes a backup of the files under the Rational® Synergy database directories.
Options and arguments
- /d|/device archive_device
- Specifies the archive device. The archive device must be a tape device name. When you specify the archive device with the /d switch, it becomes the default for both archive and restore commands. When you specify the default, you do not need to specify this parameter again, unless you want to change the default.
- /l|/level archive_level
- Specifies the archive level, 0, 1, or 2.
- /size device_size
- Specifies the size of the archive device in KBytes. When you specify the size with the /size switch, it becomes the default. The default is typically the size of the tape, if you use a tape device.
- The default size is 10240.
- /y
- Runs the command without displaying confirmation messages.
Example
Create a Level 0 archive using the tape device \\.\TAPE0 with a 1 GB tape for the database server.
- Insert the tape.
- Type the archive command.
> ccmsrv archive /level 0 /size 1000000 /device \\.\TAPE0
The size of the tape device you specify must match the capacity of the tape.
Attention
When you archive the server, back up the Informix server configuration file, ONCONFIG, as well. This file is necessary to run or restore the Informix server.
The file ONCONFIG server configuration file resides in CCM_HOME\informix\etc\ONCONFIG.