Top
ETERNUS SF AdvancedCopy Manager V15.3 Operation Guide
ETERNUS

12.6.2 Replication Management Commands

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


12.6.2.1 swsrpbackup_sql (SQL Server backup execution command)

NAME

swsrpbackup_sql - backup of SQL Server databases


SYNOPSIS

<program-directory>\bin\swsrpbackup_sql [-Xserver Server-Name] [-Xinstance Instance-Name] -Xdevmap Device-Map-File [-m] [-t] [-T] DB-Name-1 DB-Name-2,,,DB-Name-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 swsrpmake (Replication creation command). The database backup history information will be stored in msdb of SQL Server.


OPTIONS

-Xserver Server-Name

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 Instance-Name

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.

-Xdevmap Device-Map-File

Specify a device map file name that describes combinations of database volumes and destination backup volumes. 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.


OPERANDS

DB-Name-1 DB-Name-2,,,DB-Name-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 64 database names can be specified.


EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally


EXAMPLES

NOTES

12.6.2.2 swsrprestore_sql (SQL Server restore execution command)

NAME

swsrprestore_sql - restores an SQL Server database


SYNOPSIS

<program-directory>\bin\swsrprestore_sql [-Xserver Server-Name] [-Xinstance Instance-Name] [-Xnolog] -Xmeta Meta-File-Name DB-Name

DESCRIPTION

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


OPTIONS

-Xserver Server-Name

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 Instance-Name

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 Enterprise Manager/Management Studio or Transact-SQL.

-Xmeta Meta-File-Name DB-Name

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

DB-Name

Specifies a database name.


EXIT STATUS

=0: Completed successfully
>0: Terminated abnormally


EXAMPLES

NOTES