![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 3755 Date : 2003-02-18 Author : Kan Yabumoto Subject : Re: /M vs /BI Size(KB) : 2
Tom: If you want to create a "junkyard" directory which will store all files that would be overwritten or deleted by a /CLONE operation, you may do so as follows (albeit not a clean operation) xxcopy \dst\ /s/az // clear the archive bit on all files xxcopy \dst\ \src\ /s/h/aa/bi // set A-bit on files to be affected xxcopy \dst\ \junkyard\ /s/h/a // copy them into \junkyard\ xxcopy \src\ \dst\ /clone // now the main part The first line simply clears the A-bit as a preparation. The second line above will select those files that would be either overwitten (because they are different in size or time) or deleted (because there is no counterpart in the source). The /AA function does not copy files but simply set the A-bit to the selected file (by /BI --- extra files and different files in the \dst\ will be selected). The third line will select all those files that are marked with the A-bit and save them into the \junkyard\ directory. You may name the \junkyard\ directory with a date-encoded name such as xxcopy \dst\ \backup\/$yyyy-mm-dd$\ /s/h/a or xxcopy \dst\ \backup\/wkly_/$www$\ /s/h/a xxcopy \backup\/wkly_/$www$\ /rsy/s/h/db#1/fc In the latter case, the directory name will be created by the day-of-the-week value such as \backup\wkly_sun\ \backup\wkly_mon\ \backup\wkly_...\ The second line will delete files in the day-of-the-week directory by the creation date (/DB#1/FC) which will clean up any file that were copied into this directory before today (i.e., at the end of the day, there will be only files that are freshly copied file even though the seven directories in the \backup\ directory can stay indefinitely. This is just one of many schemes that I can think of. The idea here is that we try to remain neutral in how you want to approach your backup problem. Everyone's needs are slightly different. XXCOPY simply allows you to customize your own backup scheme. We have thought about making the three-way copying (comparing A and B and the difference to be saved in C) which was depicted in the first three XXCOPY command lines above. We just haven't got around to implement that (the three-line batch sequence will do just that). Kan Yabumoto ======================================================= At 2003-02-18 14:03, you wrote: > > I believe that you are (wrongly) assuming that the /BI switch > > excludes newly added/created files in the source directory. > >Kan, > >OK, bad assumption on my part. Thanks for setting me straight. Now >I need some help. > >This is what I want to do: > >Make a full backup/clone of a directory and subdirectories each week >or month or whatever. Then, each day, make a backup of the changed >and ADDED files to a separate location (from the original full >backup). > >I've poured over your help files, but I still don't know how to do >that type of incremental backup. Using archive attributes would >work, but you advise avoiding that method. > >Thanks, > >Tom Albright
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.