ASA Database Administration Guide
Backup and Data Recovery
Backup and recovery tasks
By default, the backup copy of the transaction log file has the same name as the online file. For each backup operation, you must assign a different name or location for the backup copy, or you must move the backup copy before the next backup is done.
You can make a repeatable incremental backup command by renaming the backup copy of the transaction log.
To rename the backup copy of the transaction log (SQL)
Use the MATCH keyword in the BACKUP statement. For example, the following statement makes an incremental backup of the asademo database 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
To rename the backup copy of the transaction log (Command line)
Supply the -n
option to dbbackup. For example, the following command makes an incremental backup of the sample database, renaming the backup copy of the transaction log.
dbbackup -c "uid=DBA;pwd=SQL;dbn=asademo" -r -t -n c:\backup
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. There is no Year 2000 issue with the two-digit year in the YYMMDDxx.log filenames. The names are used for distinguishability only, not for ordering.