Top
ETERNUS SF AdvancedCopy Manager V16.9.1 Operation Guide
FUJITSU Storage

14.5.1 Backup Management Commands

Swstbackup_sqlsvr and swstrestore_sqlsvr are used in the backup operation of an SQL Server by the backup management function.

14.5.1.1 swstbackup_sqlsvr (SQL Server Backup Execution Command)

NAME

swstbackup_sqlsvr - backup of SQL Server databases

SYNOPSIS

<program-directory>\bin\swstbackup_sqlsvr [-Xserver serverName] [-Xinstance instanceName] [-Xdevmap deviceMapFile] [-suspend|-T] dbName-1 dbName-2,,,dbName-i

DESCRIPTION

This command backup SQL Server databases. The command, in cooperation with SQL Server, performs a copy of data on the target database volumes on to backup volumes by executing the 14.1.2.1 swstbackup (Backup Execution Command)command.

When the swststartsync command is executed in advance of the backup synchronous processing and the "Chapter 5 Backup Operation Using Suspend/Resume Function" is used for synchronous high-speed backup, execute the backup command with -suspend option specified and suspend the backup synchronous processing.

The database backup history information is stored in msdb of SQL Server. The database volume backup history information is stored in the backup management lists of AdvancedCopy Manager.

When using WSFC for cluster operation in a Windows environment, this command performs automatic configuration of the maintenance mode of the physical disk resources to which the volume belongs with pre- and post-processing. For more information, refer to "15.1.7.1 When Using WSFC for Cluster Operation".

OPTIONS

-Xserver serverName

Specifies the virtual server name of a connected SQL Server in the case of cluster operation. In the case of operation without cluster, this option need not be specified.

-Xinstance instanceName

Specifies a connection instance. Specify an instance name in the operand. If this option is not specified, connection is made to the default instance.

-Xdevmap deviceMapFile

Specifies performing the backup to a specified backup volume. Specify a device map file name that describes combinations of database volumes and destination backup volumes. If this option is not specified, the target backup volume is automatically selected. Specify a device map file name by using an absolute pathname.

-suspend

Specifies performing the synchronous high-speed backup using the "Chapter 5 Backup Operation Using Suspend/Resume Function".

-T

Specifies that the differential snapshot high-speed backup is to be executed.
This option cannot be specified during synchronous processing.
This option is valid only for copying within a box when the ETERNUS Disk storage system supports the QuickOPC function.
For snapshot high-speed backup without specifying this option, ordinary snapshot processing (i.e., OPC without using the QuickOPC function) is started. This option must always be specified to perform a backup operation using differential snapshots.

OPERANDS

dbName,,,dbName-i(i=1,2,,,,64)

Specifies database names. If the database name contains a space, enclose it with double quotes.
When specifying two or more database names, separate the names with a space or tab as a delimiter. No more than 64 database names can be specified.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

14.5.1.2 swstrestore_sqlsvr (SQL Server Restore Execution Command)

NAME

swstrestore_sqlsvr - restores of SQL Server database.

SYNOPSIS

<program-directory>\bin\swstrestore_sqlsvr [-Xserver serverName] [-Xinstance instanceName] [-Xnolog] -Xmeta metaFileName dbName

DESCRIPTION

This command restores a SQL Server database. Execute this command after restoring database files using the swstrestore command. This command recreates a database from restored database files. To perform recovery after this command has been executed, apply logs using Management Studio or Transact-SQL.

OPTIONS

-Xserver serverName

Specifies the virtual server name of a connected SQL Server in the case of cluster operation. In the case of operation without cluster, this option need not be specified.

-Xinstance instanceName

Specifies a connection instance. Specify an instance name in the operand. If this option is omitted, connection is made to the default instance.

-Xnolog

Specifies restoring a DB to a backup point, without applying logs. If this option is omitted, the DB is restored to a backup point but cannot be used until logs are applied to it. Apply logs using Management Studio or Transact-SQL.

-Xmeta metaFileName

Specifies a metadata file name, using an absolute pathname. A metadata file is stored as "db-name.swst-dmp" in the same folder as the primary data file. To confirm file identification numbers of database files, use the Transact-SQL "USE DB-Name EXEC SP_HELPFILE". After this command closes, the metadata file is deleted.

OPERANDS

dbName

Specifies a database name. If the database name contains a space, enclose it with double quotes.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES