HP StorageWorks Storage Mirroring Scripting Guide (T2558-96327, April 2009)

3 - 6
5. Add a new rule by using the repset rule add command.
6. If you decide that you do not like the changes you have just made, you can use the repset
resync
command to restore the previously saved settings, undoing your modifications.
7. Save the replication set by using the repset save command.
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 RESYNC
Description Retrieves the last saved replication set settings, clearing any unsaved
changes
Syntax REPSET RESYNC
Command REPSET SAVE
Description Saves all replication set rules for the currently selected source
Syntax REPSET SAVE