Best way to dump an entire repository

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Tom.Wells
Posts: 65
Joined: Tue Sep 21, 2004 10:35 am

Best way to dump an entire repository

Post by Tom.Wells » Mon Nov 08, 2004 10:33 am

Since there is no search command within Vault that will search all the files in a repository for a string, I figured that dumping the all the folders to a local drive was the answer. What's the best way to do this?

Tom

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Nov 08, 2004 1:55 pm

The absolute easiest way to get the latest version of every file is to issue the following command for the command line client.

Code: Select all

"c:\program files\sourcegear\vault Client\vault.exe" -host HOSTNAME -user VAULTUSERNAME -password VAULTUSERPASSWORD -repository "Repository Name" -destpath  c:\path\to\put\files get $
This will fetch only the latest version of every file. Remove the -destpath c:\path\to\put\files parameters to fetch to the regular working folder.

Tom.Wells
Posts: 65
Joined: Tue Sep 21, 2004 10:35 am

Post by Tom.Wells » Mon Nov 08, 2004 3:17 pm

Perfect. I tried it and it replicated all the folders and files within the repository into the folder I gave it.

Thanks
Tom

Post Reply