Using inzabackup

The inzabackup utility is used to perform a full or partial backup of AEs. The utility backs up AE code, objects, and any files for AEs registered to the appropriate database(s). During backup, the AE files, typically located in /nz/export/ae/applications, are archived in a compressed tar.gz file. You specify the path and name of the tar.gz file.

When performing a backup, a locking mechanism prevents the procedure from running if any other INZA backup, restore, or compile operations are underway, ensuring that the backup is consistent.

Note: The inzabackup utility does not back up the database itself, but affects only the files related to AEs. The nzbackup command must be used to back up a database.

For more information on using nzbackup to back up a database, refer to the Netezza System Administrator's Guide.

Usage

inzabackup [-d <db>] <path_and_filename>
inzabackup -h

Options

The inzabackup utility uses the following arguments:

  • -d <db>—Optional. Allows AEs registered to a single database to be backed up. By default, AEs registered to all databases are backed up.
  • <path_and_filename>—Required. Specifies the path and name of the archive file to be created.
  • -h—Prints this help.

Examples

The following command performs a backup of all registered AEs and creates an archive called full.backup.tar.gz located in /tmp.

$NZ_EXPORT_DIR/ae/utilities/bin/inzabackup /tmp/full.backup.tar.gz

Starting inza backup.
Archiving ae …
inza backup completed successfully.

The following command performs a backup of the AEs registered only to the dev database, and creates an archive called dev.backup.tar.gz located in /tmp.

$NZ_EXPORT_DIR/ae/utilities/bin/inzabackup -d dev /tmp/dev.backup.tar.gz

Starting inza backup.
Archiving ae …
inza backup completed successfully.