HP XP P9000 Replication Manager Software 7.6.0-00 Application Agent CLI Reference Guide

drmsqlrestore backup-ID -resync [ -force ][ -undo ][ -nochk_host ]
[ -instance name-of-the-SQL-Server-instance ]
[ -target database-name | -f target-definition-file-name ]
[ -pf copy-parameter-definition-file ]
To apply only the metafile to the primary volume:
drmsqlrestore backup-ID -no_resync [ -undo ][ -nochk_host ]
[ -instance name-of-the-SQL-Server-instance ]
[ -target database-name | -f target-definition-file-name ]
To restore backup data on the remote site by resynchronization:
drmsqlrestore backup-ID -resync [ -force ][ -undo ][ -nochk_host ]
[ -instance name-of-the-SQL-Server-instance ]
[ -target database-name | -f target-definition-file-name ]
[ -template ]
[ -pf copy-parameter-definition-file ]
To apply only the metafiles to the primary volume of the remote site:
drmsqlrestore backup-ID -no_resync [ -undo ][ -nochk_host ]
[ -instance name-of-the-SQL-Server-instance ]
[ -target database-name | -f target-definition-file-name ]
[ -template ]
Description
The drmsqlrestore command lets you use the backup data specified by a backup ID to restore
data from the secondary volume to the primary volume by disk resynchronization. The snapshot
metafile created by the drmsqlbackup command is used for restoration processing.
The following explains the operation of this command for restoration by disk resynchronization:
1. If the restored database was attached, the database will be detached.
If the detachment of the database fails, an error message will be displayed, and a restoration
processing error occurs.
2. The backup data will be restored from the secondary volume to the primary volume by disk re-
synchronization.
3. The database will be attached.
4. The instance will be started.
The following explains the command processing for restoration in a cluster configuration. The database
to be restored cannot be used temporarily because the cluster resource containing the database is
taken offline.
1. The command takes the cluster resource containing the database and the disk resource offline
when the cluster resource containing the database to be restored is brought online.
If an attempt to take the cluster resource containing databases and disk resources offline fails,
the command displays an error message and the restoration processing fails.
Basic commands182