Restore the Vault from the Command Line

Restore a vault from the command line.

The restore switch requires a vault administrator account and a database administrator account, unless the default database account is still valid. The restore command does not automatically migrate data. If restoring the vault data to an upgraded vault server, migrate the data immediately after restore.

  1. Make sure no users are connected to the vault.
  2. Run Connectivity.ADMSConsole.exe from a command line with the following switches:

Command

Details

-Orestore

The operation being performed (required).

-Bfolder

The back up directory (required).

-VUusername

Vault administrator account user name (required).

-VPpassword

Vault administrator account password (required).

-DBUsaUser

The SQL sa account user name (required unless default sa account is used).

-DBPsaPassword

The SQL sa account password (required unless default sa account is used).

-Tfolder

The target database location (optional).

If used with the -TL switch, this will be the target location for the MDF database file.

-TLfolder

The target database log file (LDF) location (optional).

-Ufolder

The target file store location (optional).

-INCR

Performs an incremental restore.

-QVAL

Doesn't perform the checksum checks on the files in the file store.

-RUFS

Use existing file store files.

See Optional Switches for more commands.

Note: By default, the restore command restores both SQL database files (mdf-MDF & LDF-ldf) to the default location defined in SQL. If the -U is not used, then the file store is restored to its original location.

Example

Connectivity.ADMSConsole.exe -Orestore -BC:\Backup -VUadministrator -VPadmin -DBUdbadmin -DBPdbpword -LC:\Vault.txt

Note: You specify the name and location of the backup from which you want to restore. Paths containing spaces must be inside of double quotes (for example, "C:\Vault Backup").