Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
If your database is not involved in replication and you have limited disk space on your computer, you can delete the contents of the online transaction log (truncate the log) when you make a backup. To recover your database when using this type of backup, you must use every backup copy made since the last full backup during recovery from media failure on the database file.
Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority.
Right-click the database and choose Create Backup Images.
In the Which Database Do You Want To Back Up list, select the database and click Next.
In the Save The Backup Images In The Following Directory field, type the name of a directory to save the backup copies.
Select an option in the Which Files Do You Want To Back Up list and click Next.
In the What Do You Want To Do With The Transaction Log list, click Truncate The Transaction Log.
Use the BACKUP statement with the following clauses:
BACKUP DATABASE DIRECTORY backup-directory [ TRANSACTION LOG ONLY ] TRANSACTION LOG TRUNCATE;
Include the TRANSACTION LOG ONLY clause only if you are making an incremental backup.
The backup copies of the transaction log and database file are placed in backup-directory. If you enter a path, it is relative to the working directory of the database server, not your client application.
Run the following command:
dbbackup -c "connection-string" -x [ -t ] backup-directory
Include the -t option only if you are making an incremental backup.
The backup copies of the transaction log and database file are placed in backup-directory. If you enter a path, it is relative to the directory from which you run the command.
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|