Tape Backups

A tape set consists of one or more backup tapes produced on a given archive device. The first tape set you specify must be large enough to hold the full backup of the catalog store, including any non-SAP Sybase IQ data in the catalog store.

Digital Linear Tape (DLT) is the preferred magnetic tape data storage medium. If it is supported for your platform, use DLT for tape backups. BACKUP can also support 4mm and 8mm Digital Data Storage (DDS) tape drives, and stacker devices that support multiple tape devices.

BACKUP does not support jukeboxes or robotic loaders. Use a third-party media manager for these items.

Large Database Backups

Use multiple tape drives for large database backups. The TO clause identifies each tape drive device. The SIZE option sets the data capacity for each tape. The STACKER option indicates a backup to a multi-tape stacker device, and the number of tapes in the device. All tapes in a given stacker device must be the same size.

Tape Devices on UNIX-Like Operating Systems

BACKUP does not support fixed-length block-mode tape devices on any UNIX-like OS. To check the device block-size status, run this shell command:
mt -f <tape device> status
If the command returns a block-size greater than 0, the device is set for fixed-length blocks. To change the tape drive to variable-length blocks, use this or other appropriate OS shell command:
mt -f <tape device> defblksize 0
Non-rewinding Tape Device Commands
Platform Description

Solaris

Insert the letter n for no rewind after the device name:
/dev/rmt/0n

AIX

Set the numeric value that follows the logical name of the tape drive for an no rewind setting:
/dev/rmt0.1
See the AIX documentation for specific settings.

HP-UX

Use 0m to specify the default tape mechanism and n for no rewind:
/dev/rmt/0mn
Note: See your platform documentation for specific instructions and options.

Tape Devices on Windows

Windows does not support rewind or no rewind devices. SAP Sybase IQ requires variable-length devices, but does perform additional processing to accommodate fixed-length tape I/O on Windows.

Because SAP Sybase IQ does not support tape partitioning, do not use another application to format tapes for BACKUP or RESTORE operations. On Windows, the first tape device is \\.\tape0, the second is \\.\tape1, and so on.

Note: SAP Sybase IQ treats the leading backslash in a string as an escape character, when the backslash precedes an n, an x, or another backslash. When you specify backup tape devices, double each backslash required by the Windows naming conventions.

To indicate the first tape device, use \\\\.\\tape0, \\\\.\\tape1 for the second device, and so on. If you omit the extra backslashes, or otherwise misspell a tape device name, and write a name that is not a valid tape device on your system, SAP Sybase IQ interprets this name as a disk file name.

Tape Backup Size

Use the SIZE parameter to set the data capacity for each tape. The SIZE value can be less than or greater than the default tape size. If you omit the SIZE parameter for an unattended backup, the entire backup must fit on one tape.

Default Tape Sizes
Platform Default Tape Size

UNIX-like operating systems

None

Windows

1.5GB

Windows – the SIZE parameter must be a multiple of 64. Other values are rounded down to a multiple of 64.
The number of tapes supplied along with the SIZE clause determines whether there is enough space to store the backed-up data. Use separate TO clauses to set the SIZE value, in kilobytes (KB), for each tape:
TO '/dev/rmt/0n' SIZE 10000000 
TO '/dev/rmt/2n' SIZE 15000000
Use separate lines for each TO clause, not a comma-delimited list.

During backup, when the amount of information exceeds the tape capacity or reaches the value specified by the SIZE parameter, BACKUP closes the current tape. For attended and unattended backups that specify the SIZE and STACKER parameters, SAP Sybase IQ waits for the stacker device to auto-load the next tape, then resumes the backup.

If the backup exceeds the tape capacity in an attended backup without a STACKER device, BACKUP prompts you to mount a new tape. If the backup exceeds the tape capacity in a unattended backup without a STACKER device, the backup fails.

Rewind Tapes

SAP Sybase IQ does not rewind tapes before using them. Set the tapes to the correct starting point before you put them in the tape device. If you use a rewinding device, tapes are rewound after backup. If your tape device automatically rewinds tapes, position the tape so that a subsequent backup does not overwrite any information on the tape.

Wait for Tape Devices

If SAP Sybase IQ cannot open an archive device, the server waits for 10 seconds and tries again. These attempts continue indefinitely, until the operation succeeds or is terminated. A message is written to the server .stderr file. There is no console notification that the server cannot open the archive device.

Restoring Tape Backups

Position the tape to the start of the IQ data. RESTORE does not reposition the tape for you. Use the same number of tape drives for the restore you used to create the backup.

Related concepts
Disk Backups
Read-Only Hardware
Third-Party Products