Use the BACKUP statement to rename the backup copy of the transaction log, which by default has the same name as the online file. To make a repeatable incremental backup command, rename the backup copy of the transaction log.
You must have the BACKUP DATABASE system privilege.
Context and remarks
Alternatively, you can move the backup copy of the transaction log instead of renaming it.
The backup copy of the transaction log is named YYMMDDxx.log, where YY is the year, MM is the month, DD is the day of the month, and xx runs from AA to ZZ, incrementing if there is more than one backup per day. The YYMMDDxx.log file names are used to distinguish between files, not for ordering.
This set of backup options is typically used for databases involved in replication. In addition to making backup copies of the database file and transaction log, the transaction log at backup time is renamed to an offline transaction log, and a new transaction log is started with the same name as the transaction log in use at backup time.
Use the MATCH keyword in the BACKUP statement. For example, the following statement makes an incremental backup of the transaction log to the directory c:\backup. The backup copy of the transaction log is called YYMMDDxx.log, where YYMMDD is the date and xx is a counter, starting from AA.
BACKUP DATABASE DIRECTORY 'c:\\backup' TRANSACTION LOG ONLY TRANSACTION LOG RENAME MATCH;
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|