971201AA.log

971201AB.log

consol.log

consol.db

A backup command line The following command line backs up the database using the rename and restart option, and also uses an option to rename the transaction log backup file:

dbbackup -r -k -c "uid=DBA;pwd=SQL" c:narchive

The connection string options would be different for each database.

Effects of the backup If you back up the transaction log to a directory c:\archive using the rename and restart option and the log renaming option, the Backup utility carries out the following tasks:

1. Renames the existing transaction log file to 971201 xx.log, where xx are sequential characters ranging from AA to ZZ.

2.Backs up the transaction log file to the backup directory, creating a backup file named 971201 xx.log

3.Starts a new transaction log, as consol.log.

After several backups, the live directory and also the archive directory contain a set of sequential transaction logs.

971201AA.log

971201AB.log

971201AC.log

consol.log

consol.db

971201AA.log

971201AB.log

971201AC.log

consol.db

C:\LiveC:\Archive

A Message Agent

You can run the Message Agent with access to these log files using the

command line

following command line:

 

dbremote -c "dbn=hq;..." c:narchive

252

Page 270
Image 270
Sybase DC38133-01-0902-01 manual 252