Back up required files and optional files.
You are not required to back up temporary dbspaces. SAP Sybase IQ can reconstruct any temporary dbspace provided there is a file of the correct length at the time the database starts. Therefore, you may simply keep records of the sizes of the files or raw devices used to hold the temporary dbspaces.
Back up the ASCII message files such as dbname.iqmsg, the $IQDIR16/logfiles/*.srvlog, and $IQDIR16/logfiles/*.stderr files, even though these files are not required for a restore. If problems occur during a restore, theĀ .iqmsg file contains information that proves that the database was shut down before the backup started.
These files may be useful in diagnosing the cause of the database failure you are recovering from. Make a copy before restoring, for use in later analysis.
If IQ message log wrapping is enabled, back up theĀ .iqmsg file so that all messages are accessible if you need them for diagnostic purposes.
If message log archiving is enabled (the IQMsgMaxSize server option or the -iqmsgsz server startup switch is not equal to zero, and the IQMsgNumFiles server option or the -iqmsgnum server startup switch is not equal to zero), the server automatically backs up the message log archives. The maximum amount of message log that is archived is 128GB, which is sufficient in most cases.
It is critical to add to your system backup specification any dbspaces that are added to the database, whether they are in SYSTEM, IQ_SYSTEM_MAIN, or IQ_SYSTEM_TEMP.
To ensure that you are backing up all the files you need, use a script for system-level backups. In the script, before starting the backup, compare a select from SYSFILE (for the system dbspaces) and from SYSIQFILE (for the IQ dbspaces) to a list of dbspaces known to be in the system backup specification.
If your database files are on raw devices, be sure your system backup is backing up the raw device contents, not just the name of the device in /dev/*.
If you use symbolic links for raw device names, as recommended, be sure the system backup utility follows the symbolic link and backs up the device.