Backup storage spaces, optionally set database logging modes.
usageinfx backup type=dbs [ level=0|1|2 tapedev ansi buff unbuff nolog ] backup storage spaces optional: level - the backup level tapedev - name of directory to store backup ansi - list of databases to set to ansi mode logging buff - list of databases to set to buffered logging unbuff - list of databases to set to unbuffered logging nolog - list of databases turn off logging NOTE: Separate multiple database names with commas,e.g. nolog=db1,db2,db3 pre commandThe default infx config file specifies a rm command to be executed before each backup. This removes old ontape backup files, leaving the most recent file in place. rm -f ${tapedev}/${host}_${servernum}_[0-9]*_L${level} post commandNo default post command defined.
examplesfull backupdemo1@bobii:/home/informix>infx backup type=dbs Using the backup and restore filter gzip -c. Using the backup and restore filter gzip -c. 100 percent done. File created: /infx/inst/demo1/backup/db/bobii_5_L0 Please label this tape as number 1 in the arc tape sequence. This tape contains the following logical logs: 38 Program over. post-backup tapedev=/infx/inst/demo1/backup/db level=0 vers=11070004 cleaning all storage pool entries 0 files cleaned from /infx/inst/demo1/chks incremental backupdemo1@bobii:/home/informix>infx backup type=dbs level=1 Using the backup and restore filter gzip -c. Using the backup and restore filter gzip -c. 100 percent done. File created: /infx/inst/demo1/backup/db/bobii_5_L1 Please label this tape as number 1 in the arc tape sequence. This tape contains the following logical logs: 38 Program over. post-backup tapedev=/infx/inst/demo1/backup/db level=1 vers=11070004 aliasThe following command line aliases have been defined
notes
|