For the system-level backup of table data to be consistent with the Virtual Backup without additional steps, the system-level backup must be made during the backup command and by the backup transaction. The parameter VIRTUAL ENCAPSULATED ’shell-command’ allows arbitrary shell commands to be executed as part of the backup operation to guarantee these semantics. If the shell commands return a non-zero status, the backup operation returns an error. The user must guarantee that the shell commands correctly perform the system-level backup.
Performing an Encapsulated Virtual Backup
Use a SQL statement similar to the following:
BACKUP DATABASE FULL VIRTUAL ENCAPSULATED 'dd if=iqdemo.iq of=iqdemo.iq.copy' TO ’iqdemo.full’
Restoring from Encapsulated Virtual Backup
Restore the system-level copy of the IQ Store.
Perform a full IQ restore from the backup file.
Start the IQ database.