Export a whole repository?

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
portablenut
Posts: 2
Joined: Wed Jan 12, 2011 5:13 am

Export a whole repository?

Post by portablenut » Wed Jan 12, 2011 12:18 pm

Hi,

I wonder if you provide and tools or directions for how one could export a whole Vault repository, that is file contents, user, date etc for each transaction that has been committed? I've been playing around with the vault integration api, but it's pretty slow just fetching the transaction details. Fetching all the file contents will take a very, very long time.

Regards,
Nutty

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Export a whole repository?

Post by lbauer » Wed Jan 12, 2011 1:00 pm

Vault (version 3.5.x and later) has a folder export/import tool. It's in the Vault Client directory and it's called VaultFolderExportImport.exe. Documentation is in ExportImport.chm in the same directory.

The ExportImport tool can export an entire repository including files and history, if you select the root folder. The result is an .vfe file when then can be imported into a different repository or database.

Note: because it's recreating all history, it can take a while. Also, any obliterate operations can cause the export to fail, since historical transactions are missing.
Linda Bauer
SourceGear
Technical Support Manager

portablenut
Posts: 2
Joined: Wed Jan 12, 2011 5:13 am

Re: Export a whole repository?

Post by portablenut » Thu Jan 13, 2011 12:51 am

Hi again

Sorry, I should have stated my purpose more clearly. I want to export parts of a source gear repository to a different source control system altogether. Looking at the contents of the .vfe file it seems to be a proprietary format, or is there any documentation for it?

Regards,
Nutty

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Export a whole repository?

Post by lbauer » Thu Jan 13, 2011 4:28 pm

Yes, the .vfe is just for importing into Vault. Sorry, we don't have an export to other systems.

You would need use the client api or command line client to get folder versions from history and add them a version at a time to the new location. You are correct that this could take a long time, depending on how many versions you have. Another option would be to start fresh and just do a GET of the latest code and add it as version one to the new system.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply