Double-Take for Windows NT Setshr Command Line Utility (C) 1996-2001 NSI Software Setshr is a command line utility allowing Windows NT drive share configurations created by Double-Take to be saved or restored without using Double-Take. When mirroring and replicating data using Double-Take, the source’s drive share configuration is saved to a file on the target. This binary file is given the same name as the source machine and a .shr extension (ie source_machine.shr) and is located in the directory where Double-Take is installed. The Double-Take service uses the .shr file during failover to re-create the source’s drive share configuration on the target. Setshr allows you to save or restore drive share configuration independent of Double-Take. To execute the setshr utility, use one of the two following commands from the command prompt where Double-Take is installed. Syntax setshr /clear Description This command deletes all existing shares on the server Syntax setshr /shr [options] Description This command identifies the name of the share file and any optional switches. The optional switches that can be used with /shr are detailed in the table below. Options Description ------------------------------------------------------------------ /clear Deletes all existing shares on the server and reapplies the shares listed in the share file. /remove Removes only the shares from the server that are listed in the share file. /filter Creates shares from the specified path and any subdirectories of this path. This option may be necessary if replicated data exists in two locations or in many-to-one configurations where only one source has failed. /list on|off Specifies if all of the drive share creation update information is displayed on screen. The summary data is always printed. /log Logs the drive share creation update information to the specified file. /overwrite yes|no Specifies if existing shares on the target are overwritten /save Saves the share information on the machine where this option is specified. If this option is not specified, a restore is executed. /share Creates the specified share /start Specifies the path to insert when creating the drive share. For example, if c:\data\db_files is replicated to c:\backup\data\db_files, use /start c:\backup to create the share on c:\backup\data\db_files on the target. /help Displays the valid options for setshr. **Note As with Double-Take, setshr will not save or restore administrative shares.