The ca_backup command includes the following SQLServer Agent options:
ca_backup
[-sql_full | -sql_diff | -sql_log <trunc|no_trunc|no_recovery>] [-sql_log_afterdata <trunc|no_trunc|no_recovery>][-sql_partial] [-sql_filegroup <filegroupname> [-sql_file <filename1>]...[-sql_file<filenamen>]]... [-sql_dbcc [sql_before [continue]] [sql_after] [physical_only] [no_indexes]] [-sql_checksum]
Note: The ca_backup database options are described in a separate topic titled "Database Options" and can be viewed from the actual CLI by entering the following command: ca_backup allusage.
Specifies to perform a Full SQLServer backup.
Specifies to perform a Differential SQLServer backup.
Specifies to perform a Transaction Log backup.
Specifies to truncate the Transaction Logs when you back them up. This option removes all inactive entries from the Transaction Log. If the Transaction Log is not truncated, it may eventually grow very large.
Specifies not to truncate the Transaction Logs when you back them up. This option does not remove the inactive entries from the Transaction Log.
Specifies to back up log tail and leave the database in a loading state.
The log tail is the oldest end of the log.
Specifies to back up the transaction log after the database.
Specifies to perform a partial backup.
Specifies the filegroups in the session to be backed up.
Specifies the files in the session to be backed up.
Specifies to perform a database consistency check (DBCC).
Specifies to perform a DBCC before the backup of the database.
You can also specify to continue with the backup even if the DBCC fails.
Specifies to perform a DBCC after the backup of the database.
Specifies to check only the physical consistency of the database to verify the structural integrity of all the objects in the database.
Specifies to check the database for consistency without checking indexes for user-defined tables.
Specifies to include checksums generated by SQL Server in the backup.
Examples:
The following are examples of syntax for the ca_backup SQL Server database command:
-database SQL <instance name> <dbase name> -sql_full
-database SQL <instance name> <dbase name> -sql_diff
-database SQL <instance name> <dbase name> -sql_filegroup [-sql_file <filename>...]
-database SQL <instance name> <dbase name> -sql_log[trunc|no_trunc|no_recovery]
Copyright © 2017 |
|