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

Number : 9375 Date : 2004-11-25 Author : des4212001 Subject : Re: Destination Exclusions? Size(KB) : 4
--- In xxcopy@yahoogroups.com, "John Zeman" wrote: > > --- In xxcopy@yahoogroups.com, "des4212001" wrote: > > > > > > And I thought I'd done such a good job explaining it the first time! > > > > Example: Trying to sycronize My Documents here on El-Diablo - "F:\My > > Documents\", (WinXP) with "\\Cx532597-a\My Documents\" (W-98). Each > > My Documents folder contains objects unique to it's installation, > > call them Orphans. Exclusions take care of not transfering Source > > Orphans to the Destination. And backing up only different size (& > > new) files ignores Destination Orphans. But in many subfolders it's > > desirable to delete objects from the destination that no longer > > reside on the source (/ZY). Just not inclusive, as a few destination > > orphans need to be ignored. Hence the concept - Destination > > Exclusions. > > > > Breaking the batch down into subfolder components to include the /ZY > > or not as required would work, just gets unhandy. Read that large > > with many invocations of xxcopy. All I "would like" to do is specify > > a few /X:"\\Cx532597-a\My Documents\xxx" items in the main My > > Documents command file. But alas, that don't work! Considering all > > the what I would call "really farout" special capabilities of > > xxcopy, I'm confused finding such an obvious lacking right up front? > > I'm just hoping I've missed something? (Well, I know for sure I've > > missed Something! And here's hoping it includes destination > > exclusions?) > > > > DES > > > > Ok, if I understand you right this time, to sum it up, you would like to delete files that exist on the destination, but not on the source, which is what a /Z or /ZY option does (and of course, /CLONE) yet you would like to exclude some of those destination orphans from the deletion process. > > If that's right, then you, Garry, and I have all been talking about a similar same thing in the past 24 hours but in different tongues so to speak. > > As you know, this is "normal" /ZY use with an exclusion > > Xxcopy SRC DST /ZY /X"\Do not copy this.txt" > > The above excludes the file "Do not copy this.txt" from being copied to the destination while the /ZY option deletes all orphans on the destination. > > To emulate an exclusion file that can be used when deleting destination orphans, it takes a second xxcopy step where you reverse your source and destinations, and use the /BB/RSY combination (along with any other xxcopy options you want) instead. By doing it this way, a specific exclusion (or exclusion file) will apply towards NOT deleting certain orphan files. > > The first xxcopy line below does a typical /BU backup operation but does not delete any destination orphans. The second xxcopy line does what /ZY would have done in the first xxcopy line except it allows the use of an exclusion file for the deletions (note the SRC and DST are reversed in that one). > > Xxcopy SRC DST /BU > > Xxcopy DST SRC /BB/RSY /X"\Do not delete this.txt" > > Essentially, at least in concept, this is what I was saying in message #9365 yesterday. It's also what Garry was suggesting yesterday, and apparently, what you were thinking yesterday in your original message. If it's still a little muddy you might go back to the message Garry mentioned in his last post, and read in order, the responses to the question asked on June 1st, 2003. > > And now, since it is an official holiday here in the states, I am obligated to sign off, and go do my best to eat, drink, and be merry the rest of the day. > > Happy Thanksgiving to all who are celebrating it today! > > John Exactly. Also see Garry's solution using source dummies to avoid deletion of specific destination objects with /ZY. Both methods will work. But both are work arounds that avoid directly addressing what "appears" to be a straightforward operation. (But then I'm still hung up on xxclone being able to copy registry files, but xxcopy not!) I'm going to go eat the turky. DES
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.