SSRESTOR Utility

Restores information from a previously created archive. If the restore operation attempts to create a duplicate file or project name, the operation fails. Visual SourcSafe also implements restore operations through its Restore wizard, available in Visual SourceSafe Administrator.

Note

SSRESTOR cannot restore a project that is larger than 2 GB. A project larger than this cannot be archived.

Syntax

ssrestor [-C][-I-][-L][-O][-P<project>][-S][-T][-X][-Y]
<archive file to restore> [files/projects]

Utility Options

The following table describes options available with this command.

  • -C
    Specifies a comment (standard Visual SourceSafe parameter). The comment is applied to the history entry for restored item(s).
  • -C-
    Specifies no comment.
  • -I-
    Specifies no input (standard Visual SourceSafe parameter).
  • -L
    Specifies a list only, without any restoration.
  • -LA
    Specifies a list of all files and subprojects listed under a project, for example, project $/A.
  • -O
    Redirects output (standard Visual SourceSafe parameter).
  • -P<project>
    Specifies a project to which to restore content. For instance, if you archive $/A/BAR.C and then restore it, it will be restored as $/A/BAR.C.
  • -S<srcsafe.ini path><data path>
    Specifies a path to Srcsafe.ini and the Data directory.
  • -T
    Tests the archive file for corruption, but does not actually restore from the archive.
  • -X, -X-
    Identifies an item that you want to restore, for example, $/a/b. This option distinguishes between deleted projects and undeleted projects that have the same names. For example, if you have deleted $a/b and specify the -X option, SSRESTOR restores the deleted $/a/b. If you specify -X-, SSRESTOR restores an undeleted $/a/b. Even though they have the same name, note that these are two different projects that the utility treats differently.
  • -Y<user>,<pwd>
    Specifies user name and password (standard Visual SourceSafe parameter). An example is -YAdmin,Moggy.
  • archive file to restore
    Specifies the name of the archive file from which to restore the database.
  • files/projects
    Specifies files and projects to restore.

See Also

Tasks

How to: Restore a Database from an Archive

Reference

Restore Wizard (Administrator)
SSARC Utility