HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

13 - 33
Repset Rule Add
Repset Rule Remove
Repset Save
Command REPSET RULE ADD
Description Adds a rule to a replication set. A rule is the specification of a path including volume, directories,
wild cards, and/or file names.
Syntax
REPSET RULE ADD <path> [INCLUDE|EXCLUDE][, RECURSIVE|NONRECURSIVE]
[TO <
repset>]
Options
path—Volume, directory, wild card, and/or file name
INCLUDE—Include the specified path in the replication set
EXCLUDE—Exclude the specified path in the replication set
RECURSIVE—All subdirectories and files of the specified path are recursively included or
excluded
NONRECURSIVE—No subdirectories and files of the specified path are included or excluded
repset—Name of the replication set
Examples
repset rule add "c:\data" to DataFiles
Notes The default settings for this command are include and recursive.
The options include/exclude and recursive/nonrecursive can be used in any combination and in
any order. The first option does not require a comma, but the second option does require a
comma before the option.
If you do not specify a replication set name, the current replication set will be used.
Options that contain non-alphanumeric characters must be enclosed in quotation marks.
Command REPSET RULE REMOVE
Description Removes a rule from a replication set
Syntax
REPSET RULE REMOVE <path> [FROM <repset>]
Options
path—Volume, directory, wild card, and/or file name
repset—Name of the replication set
Examples
repset rule remove "c:\data" from DataFiles
Notes If you do not specify a replication set name, the current replication set will be used.
Options that contain non-alphanumeric characters must be enclosed in quotation marks.
Command REPSET SAVE
Description Saves all replication set rules for the currently selected source
Syntax
REPSET SAVE