Using inzarestore
The inzarestore utility is used to restore AEs from an archive file. Depending on whether the archive contains a full or partial backup, the restore operation may affect only a specific database, or all databases on the NPS. Once the AEs are restored, you may need to be re-registered to the database before use. This would happen if the state of the database is not consistent with the inzarestore you just applied (for example, if inzarestore restored an older copy that is out of sync with current database).
When performing a restoration, a locking mechanism prevents the procedure from running if any other INZA backup, restore, or compile operations are underway to ensure that the restoration is consistent.
The inzarestore utility does not restore a database, but restores only files related to AEs. The nzrestore command must be used to restore a database.
For more information on using nzrestore to restore a database, refer to the Netezza System Administrator's Guide.
Usage
inzarestore [-f] <path_and_filename>
inzarestore -h
Options
The Restoration utility uses the following arguments:
- -f—Forces the commands to run without prompting for confirmation.
- <path_and_filename>—Specifies the path and name of the archive file to be restored.
- -h—Prints this help.
Examples
The examples in this section are based on files resulting from the backup commands found in the Using inzabackup section.
$NZ_EXPORT_DIR/ae/utilities/bin/inzarestore /tmp/full.backup.tar.gz
Extracting inza data archive …
Restore inza data archived Fri Apr 8 11:09:57 EDT 2011? (y/n) [n] y
Starting inza restorer.
Installing ae contents to '/nz/export/ae/applications/' ...
inza restore completed successfully.
The following command restores AEs from a partial backup archive file called dev.backup.tar.gz found in /tmp. This archive was specific to a database named dev.
$NZ_EXPORT_DIR/ae/utilities/bin/inzarestore /tmp/dev.backup.tar.gz
Extracting inza data archive …
Restore inza data archived Fri Apr 8 11:10:16 EDT 2011? (y/n) [n] y
Starting inza restorer.
Installing ae contents to '/nz/export/ae/applications/dev' ...
inza restore completed successfully.