command line‎ > ‎

backup

infx backup type=dbs|fake|ext|logs|hot [ level=0|1|2 tapedev ansi buff unbuff nolog ] fork=no

 type   description
 dbs  database backup
 fake  fake backup
 ext  external backup
 logs  logical log backup
 hot  hot backup

notes

  • see setup backup & restore manager for the mapping between backup types and commands
  • the backup service may execute additional commands before and after the backup, depending on your config.

alias

The following command line aliases have been defined for backup commands:

 alias
 command

 example
 LO  infx backup type=dbs level=0  infx L0
 L1   infx backup type=dbs level=1  infx L1
 L2  infx backup type=dbs level=2  infx L2
 backup-logs  infx backup type=logs  infx backup-logs

perform a database backup

infx backup type=dbs [ level=0|1|2 tapedev ansi buff unbuff nolog ] fork=no

Does a backup of all storage spaces in the instance, and optionally sets logging modes on databases.

 option
 description

 example
 level=  level of backup to perform, 0=full, 1/2 incremental. Defaults to 0.  level=0
 tapedev=  backup using this tapedev value instead of ONCONFIG value  tapedev=/backup/db
 ansi=  switch database to ansi mode logging after backup  ansi=db1
 buff=  switch database to buffered logging after backup     buff=db1
 unbuff=  switch database to unbuffered logging after backup  unbuff=db1
 nolog=  switch database to no logging after backup  nolog=db1
 fork=  specify fork=no to have the cli wait until the backup completes  fork=no

NOTE: Separate multiple database names with commas,e.g. nolog=db1,db2,db3

perform a fake backup

infx backup type=fake [ ansi buff unbuff nolog ] fork=no

Performs a "fake" backup of the instance. This does no actual backup but can be used to change database logging
modes.

 option  description

 example
 ansi=  switch database to ansi mode logging after backup  ansi=db1
 buff=  switch database to buffered logging after backup     buff=db1
 unbuff=  switch database to unbuffered logging after backup  unbuff=db1
 nolog=  switch database to no logging after backup  nolog=db1
 fork=  specify fork=no to have the cli wait until the backup completes  fork=no

perform an external backup

infx backup type=ext fork=no

Performs an external backup by:
  • blocking the instance, onmode -c block
  • executing the external backup command
  • unblocking the instance, onmode -c unblock
 option  description

 example
 fork=  specify fork=no to have the cli wait until the backup completes  fork=no

perform a logical log backup

infx backup type=logs fork=no

Backs up used logical logs, usually called from the instance alarm program script.

 option  description

 example
 fork=  specify fork=no to have the cli wait until the backup completes  fork=no

perform a hot backup to STDOUT

infx backup type=hot

This does a full backup of the instance to STDOUT. This is used by the hot copy service, and is not intended to be run directly from the command line. Of course, if you want to dump an archive of the database to your terminal, go right ahead.