HP StorageWorks Storage Mirroring for Linux User's Guide (T2558-96078, February 2008)

5 - 10
3. Define a replication set rule by using the repset rule add command.
4. Repeat the repset rule add command to completely define your replication set.
5. If you need to remove a rule, use the repset rule remove command.
6. After you have added all of the rules, 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 pathVolume, directory, wild card, and/or file name
INCLUDEInclude the specified path in the replication set
EXCLUDE—Exclude the specified path in the replication set
RECURSIVE—All subdirectories and files are recursively included or excluded
NONRECURSIVE—All subdirectories and files are non-recursively included or excluded
repset—Name of the replication set
Examples
repset rule add /var/spool/customerDB to “Customer Data”
Notes The default settings for this command are include and recursive.
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.
Verify what files can be included by reviewing Managing Replication Sets Through the Management
Console
on page 5-4.
Command REPSET RULE REMOVE
Description Removes a rule from a replication set
Syntax
REPSET RULE REMOVE <path> [FROM <repset>]
Options
pathVolume, directory, wild card, and/or file name
repset—Name of the replication set
Examples
repset rule remove /var/spool/customerDB from “Customer Data”
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
NOTE:
To connect this replication set to a target machine, continue with Establishing a new connection on page 6-12.