Contents Index Recovering from a live backup Recovering uncommitted operations

ASA Database Administration Guide
  Backup and Data Recovery
    Backup and recovery tasks

Restoring an archive backup


If you use an archive backup (typically to tape), you use the RESTORE statement to recover your data.

For more information about making archive backups, see Backing up a database directly to tape.

To restore a database from an archive backup (Sybase Central)

  1. In Sybase Central, connect to a database with DBA authority.

  2. In the left pane, select the Adaptive Server Anywhere plug-in, and click the Utilities tab in the right pane.

  3. In the right pane, double-click Restore Database.

  4. Follow the instructions in the wizard.

To restore a database from an archive backup (Interactive SQL)

  1. Start a personal database server. Use a command such as the following, which starts a server named restore:

    dbeng9 -n restore
  2. Start Interactive SQL. On the Identification tab of the Connect dialog, enter a user ID of DBA and a password of SQL. Leave all other fields on this tab blank.

  3. Click the Database tab and enter a database name of utility_db. Leave all other fields on this tab blank.

  4. Click OK to connect.

  5. Execute the RESTORE statement, specifying the archive root. At this time, you can choose to restore an archived database to its original location (default), or to a different machine with different device names using the RENAME clause.

    For more information, see RESTORE DATABASE statement.

Example 

The following statement restores a database from a tape archive to the database file c:\newdb\newdb.db.

RESTORE DATABASE 'c:\\newdb\\newdb.db'
FROM '\\\\.\\tape0'

The following statement restores a database from an archive backup in file c:\backup\archive.1 to the database file c:\newdb\newdb.db. The transaction log name and location are specified in the database.

RESTORE DATABASE 'c:\\newdb\\newdb.db'
FROM 'c:\\backup\\archive'

For more information, see RESTORE DATABASE statement.


Contents Index Recovering from a live backup Recovering uncommitted operations