backup

The backup command initiates an offline backup of all database files or the selected database files specified in the optional [file-list] argument. Information or errors from the backup operation are recorded in the backup.log file located in the default database directory (specified by using the path argument).

You cannot restore the backup if errors are encountered during the backup process.

The syntax of the backup command in the jdbutilb command line is as follows.

jdbutilb path=database-path
         ini=initialization-file-name
         backup [file-list]
         backupDir=backup-directory
         [compress]
         [excludeFrozenFiles]
         [excludeFrozenPartitions]
         [overwrite]
         [verify]
         [nostatus]

The following example shows the use of the backup command in the jdbutilb command line to backup all user schema files and the userdata1.dat and userdata2.dat files, with verification requested and the status message display suppressed.

jdbutilb path=d:\jade\db backup ini=d:\jade.ini _user* userdata1 userdata2 backupDir=e:\jade\backup25032004 verify nostatus

In this example, the backup process expects to find the database control file (_control.dat) in the d:\jade\db database path specified in the path argument. The files will be backed up to the e:\jade\backup25032004 directory specified in the backupDir argument.