"Get" from commandline does not override "Old

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

Moderator: SourceGear

Post Reply
ssinger
Posts: 9
Joined: Mon Mar 01, 2004 8:54 am

"Get" from commandline does not override "Old

Post by ssinger » Wed Mar 14, 2007 11:00 am

Hello.

I'm running a "Get" from the command line and for someone reason it only partially seems to work.
The vault client still says "Old", but the file is actually refreshed on my local hard drive. Here's
the command line that I'm using:

Code: Select all

vault Get -host vaultSvr  -user MyId -password MyPwd -verbose -merge overwrite -setfiletime modification -performdeletions removeworkingcopy -makereadonly  -repository "MyRepository" -destpath "C:\MainDirectory\Trunk\"  "$/MainDirectory/Trunk"
I'm using Vault 3.1.7


Another somewhat related question:

When I use the "-backup yes" option on the command line, it backs up EVERY file to the _sgbak directories even if the file hasn't changed. Is this the way it works or am I doing something wrong?

Your help is greatly appreciated!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Mar 14, 2007 12:13 pm

Do you perform a refresh on your client? There is an auto refresh option in the Tools - Options that you can set to refresh faster. Also, are you getting to your working folder? The cache only watches what happens to the working folder, so if you get to someplace else, it won't notice. You should not use the -destpath option and then it will default to the working folder.

On the -backup switch, in your GUI, do you have it set to look use CRCs to determine modifications or using the defaults? If you are getting to a non-working folder, which is what -destpath does, it will make a back up of everything.

ssinger
Posts: 9
Joined: Mon Mar 01, 2004 8:54 am

Post by ssinger » Fri Mar 16, 2007 6:03 am

Thanks Beth! My problem was the -destpath option. Even though my -destPath folder was the same as my working folder, it did not refresh the Vault Client. Once this was working, then the -backup option only backed up the files it replaced. Thanks again!

Post Reply