An archive backup makes a copy of the database file and transaction log file in a single archive destination. Only server-side, full backups can be made in this manner. When you make an archive backup in Sybase Central, you have the option of backing up the database directly to tape or to disk.
An extension of .1 is added to the file name you specify in the Backup Database wizard or BACKUP statement.
For more information, see Types of backup.
Start Sybase Central. Connect to the database as the DBA.
Right-click the database and choose Backup Database from the popup menu.
The Backup Database wizard appears.
Click Next on the introductory page of the wizard.
Select the database that you want to back up to tape.
On the second page of the wizard, select the On Tape to the Following Device option and enter the tape drive in the text box below.
Click Finish to start the backup.
Use the BACKUP statement, with the following clauses:
BACKUP DATABASE TO archive_root [ ATTENDED { ON | OFF } ] [ WITH COMMENT comment-string ];
If you set the ATTENDED option to OFF, the backup fails if it runs out of tape or disk space. If ATTENDED is set to ON, you are prompted to take an action, such as replacing the tape, when there is no more space on the backup archive device.
The BACKUP statement makes an entry in the text file backup.syb, in the same directory as the server executable.
For information about restoring from an archive backup, see Restoring an archive backup.
The following statement makes a backup to the first tape drive on a Windows computer:
BACKUP DATABASE TO '\\\\.\\tape0' ATTENDED OFF WITH COMMENT 'May 6 backup';
The first tape drive on Windows is \\.\tape0
. Because the backslash is an escape character in SQL strings, each backslash is preceded by another.
The following statement makes an archive file on disk named c:\backup\archive.1.
BACKUP DATABASE TO 'c:\\backup\\archive';