[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 8855 Date : 2004-09-29 Author : Ray McCormick Subject : Re: A very newbie question Size(KB) : 2
--- In xxcopy@yahoogroups.com, "grim_judge" wrote: > --- In xxcopy@yahoogroups.com, "Carlos Fonseca" wrote: > > Hi! > > Well, my knowledge on batching files are null. So based on the help > > file I did these lines to synchronize two directories: > > > > @ECHO OFF > > xxcopy h:\src\ l:\dest\ /E /BN /ZY /V2 /VE /PB > > > > It works! But I have some doubts. > > First one is. Is this line well implemented to the job? > > Second > > > > Greetings! Just put in a PAUSE command... Bat will wait for keypress > to close. > > Enjoy! > > Grim Hi I too use a terminating PAUSE command even though I usually run batch files from a cmd window. But back to you command line. The /ve will override the /v2 so making the /v2 superfluous. [Try xxcopy /v2/ve/?]. Do you wish to include hidden and read-only files in the clone operation? They are not specified in your command line. For incremental backups I use /bu/bn plus more switches (these two switches must be in the order given here; bu is short for backup; try xxcopy /bu/bn/? to see a list of the switches set). However you wish to delete files no longer on the source so, unless you have a particular reason not to, why not use the /clone switch plus any added switches that you might want, such as /pb or for others for log creation. Also if you want to override the /v1 of the /clone switch you can add /ve, but in that case make sure you put it after the /clone. However, if you want to SYNCHRONISE the two volumes then /bn is inappropriate as this specifies only newer files, rather than different files. If this is what you really want then /bn can also be added after /clone to override the /bi contained therein. Possibly /clone/pb/ve possibly with the /bn also. One more thing to remember is that the byte-by-byte comparison (/v2) is likely to be comparing something in a buffer rather that the data in the two volumes on the hard drive. I believe many people do not use it for that reason. I have found that because of the multitude of switches available it is sometimes more difficult to decide EXACTLY what one wants to do than it is to implement it. Have fun Ray
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.