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

14.5.2 Replication Management Commands

Swsrpbackup_sql and swsrprestore_sql are used in the backup operation of SQL Server by the replication management function.

14.5.2.1 swsrpbackup_sql (SQL Server Backup Execution Command)

NAME

swsrpbackup_sql - backup of SQL Server databases

SYNOPSIS

<program-directory>\bin\swsrpbackup_sql [-Xserver serverName] [-Xinstance instanceName] (-Xgroup groupName | -Xdevmap deviceMapFile) [-m] [-t] [-T] (-Xdblist dbListFile | dbName-1 dbName-2,,,dbName-i)

DESCRIPTION

This command backup of SQL Server databases. This command, in cooperation with SQL Server, performs copy of data of the target database volumes on to backup volumes by executing the swsrpmake command. The database backup history information will be stored in msdb of SQL Server.

In the case of MSCS or WSFC operation, 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 MSCS or WSFC for Cluster Operation".

OPTIONS

-Xserver serverName

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

-Xinstance instanceName

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

-Xgroup groupName

Specify replication management function group name.
In cases when backup has been performed while specifying this option, it is possible to confirm the backup history information with the swsrphistory_sql command.

-Xdevmap deviceMapFile

Specify a device map file name that describes combinations of database volumes and destination backup volumes. For details on the device map file, refer to "10.4.1.7 Prepare Device Map File (When Not Creating a Replication Group)". Specify a device map file name using an absolute pathname.

-m

For backup server type operation (i.e., server-to-server replication), this option specifies that communication processing with the backup server (i.e., a non-operation server) is not performed. When it is specified, volume status check processing and pre-processing and post-processing are not performed for the backup volume. This option is valid only during backup server type operation.

-t

Specifies that the pre-processing and post-processing for a backup volume (i.e., the copy destination volume) are not performed.
Use this option only when AdvancedCopy Manager does not execute pre-processing and post-processing of the copy destination volume and unique pre-processing and post-processing scripts are inserted before and after the AdvancedCopy Manager command (respectively).

-T

Specifies that the differential snapshot high-speed backup will 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 the snapshot high-speed backup without specifying this option, ordinary snapshot processing (OPC without using the QuickOPC function) is started. This option must be always specified to perform a backup operation using differential snapshots.

-Xdblist dbListFile

Specify the file that lists all databases subject to backup (the database list file).
Specify the database list file as an absolute path or as a relative path from the current task folder.
In the case that this option has been specified, it will not be possible to specify a database name as the operand.
For details on the database list file, refer to "10.4.1.8 Performing Database List File".

OPERANDS

dbName-1 dbName-2,,,dbName-i

Specifies database names. Delimit by the half-size blank or the tab character and specify the database names when you specify two or more databases. No more than 128 database names can be specified.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

14.5.2.2 swsrphistory_sql(SQL Server Backup History Information Display/Delete Command)

NAME

swsrphistory_sql - SQL Server backup history information display/delete

SYNOPSIS

To Display SQL Server Backup History Information
<program-directory>\bin\swsrphistory_sql disp [-Xserver serverName | -Xallserver] [-Xinstance instanceName | -Xallinstance] [-Xgroup groupName] [-Xreg] [-Xdblist dbListFile | dbName-1,,,dbName-i]
To Delete SQL Server Backup History Information
<program-directory>\bin\swsrphistory_sql delete [-Xserver serverName] [-Xinstance instanceName] (-Xgroup groupName | -z) (-Xdblist dbListFile | dbName-1,,,dbName-i)

DESCRIPTION

This command Display/Deletes SQL Server backup history information.

The following information is displayed:

Title

Explanation

Instance-Name

Instance name is displayed.

Server-Name

In a case of cluster operation, virtual server name is displayed.

In case of operation without cluster, computer name is displayed.

Group-Name

Replication group name is displayed.

DB-Name

Database name is displayed.

Meta-Data-File

Display the meta data file path as an absolute path.

DB-File

Display the file paths of the database files (primary data file (.mdf), secondary data file (.ndf), log files (.ldf)) as absolute paths.

Original-Volume

Transaction volume name (replication source volume name) is displayed.

Replica-Volume

Backup volume name (replication destination volume name) is displayed.

Backup-Date

Time and date of backup finish is displayed.

This command is executed with the server on which the SQL Server is installed.

OPTIONS

-Xserver serverName

Specify the computer name or the virtual server name of the SQL Server of the SQL Server backup history information to be displayed / deleted.
If neither the -Xserver option nor the -Xallserver option is specified, the computer name will be specified.

-Xallserver

The SQL Server backup history information of all the computers or virtual servers of SQL Server will be displayed.
If neither the -Xserver option nor the -Xallserver option is specified, the computer name will be specified.

-Xgroup groupName

Specify replication management function group name.

-Xinstance instanceName

Specify the instance of the SQL Server backup history information to be displayed / deleted. Specify an instance name in the operand.
If neither the -Xinstance option nor the -Xallinstance option is specified, the default instance will be specified.

-Xallinstance

The SQL Server backup history information of all instances of SQL Server will be displayed.
If neither the -Xinstance option nor the -Xallinstance option is specified, the default instance will be specified.

-Xreg

The SQL Server backup history information of the group registered on the replication management log will be displayed.
In the case that this option has been omitted, all the SQL Server backup history information will be displayed.

-Xdblist dbListFile

Specify the file that lists all databases subject to backup (the database list file).
Specify the database list file as an absolute path or as a relative path from the current task folder.
In the case that this option has been specified, it will not be possible to specify a database name as the operand.
For details on the database list file, refer to "10.4.1.8 Performing Database List File".

-z

Delete all the SQL Server backup history information.

OPERANDS

dbName-1,,,dbName-i

Specifies a database name. Delimit by a single blank or the tab character and specify the database names when you specify two or more databases. No more than 128 database names can be specified.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES

14.5.2.3 swsrprestore_sql (SQL Server Restore Execution Command)

NAME

swsrprestore_sql - restores an SQL Server database

SYNOPSIS

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

DESCRIPTION

This command restores an SQL Server database. Enter this command after restoring database files using the swsrpmake command. This command recreates a database from restored database files. To perform recovery after this command is executed, apply logs using Management Studio or Transact-SQL.

OPTIONS

-Xserver serverName

Specifies the virtual server name of a connected SQL Server in case of cluster operation. In 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 will be made to the default instance.

-Xnolog

Specifies the restoration of a DB to a backup point, without applying logs. If this option is not specified, the DB will be 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 dbName

Specifies a metadata file name, using an absolute pathname. A metadata file will be stored as "db-name.swsrp-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.

EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally

EXAMPLES

NOTES