Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Database Administration » Maintaining Your Database » Backup and data recovery » Making a server-side backup


Use the BACKUP DATABASE statement to make a server-side backup

This topic describes a backup that leaves the transaction log untouched. For information about other transaction log management options when making a backup, see BACKUP statement.

The BACKUP statement makes an entry in the text file backup.syb that is stored in the same directory as the database server executable.

Make an image backup
♦  To make an image backup (SQL)

For information about recovering from an image backup, see Restore from an image backup.

Make an archive backup
♦  To make an archive backup to tape (SQL)

For information about recovering from an archive backup, see Restore from an archive backup.


The following statement makes an image backup of the current database and the transaction log, saves them to different files, and renames the existing transaction log.

DIRECTORY 'd:\\temp\\backup'

The following statement makes an archive backup to the first tape drive on a Windows computer:

TO '\\\\.\\tape0'
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.

See also