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

Number : 3236 Date : 2002-12-12 Author : dayvah49 Subject : Re: Preserving Generation Backups Size(KB) : 2
--- In xxcopy@yahoogroups.com, "freedom41ca " wrote: ------snip------ > What I was hoping for is a scheme that triggers the delete function > based solely on the timestamp of the backup_dir "folder", and not on > any particular file "in the folder". If the timestamp "of the > folder" is within the /db# parameter, xxcopy moves on and leave the > folder in its entirety. On the other hand, if the folder is > outside the parameter identified by the /db# switch, xxcopy then > removes the folder using the /rmdir switch (thereby also wiping out > all contents within that folder). An all-or-none function, so to > speak. > > ---(I believe that this is the way I have the command setup in my > batch file, using the /rmdir and /db# switches in combination, but > the /db# also goes on to delete any files in the folder that is > older than the /db# switch)--- > > In programming terms, which would probably put us on the right > direction, can the folder itself be treated as an "object" by > xxcopy? Martin, I have a similar backup scheme that runs everyday using XXCOPY, WZZIP (WinZip's command-line program), and optionally WMFREN a command-line program that can rename with more than 8 characters. The WinZip and system date parts of this scheme (to give proper credit) were inspired by Fred Langa's personal backup strategy. 1. XXCOPY copies files to a temp folder. 2. WZZIP moves the files into an archive named ".zip". 3. File renamed by WMFREN or XXCOPY depending on the technique used. If WMFREN is used ".zip" will be renamed in place, ex. 02-12- 11.zip. Folder and files are turned into an "object" that XXCOPY deletes at the /db# age you specify. 4. If XXCOPY is used, the ".zip" is moved into a macro dated folder and then moved again using /SL, /SX, or /SR which synthesizes the dated folder into the filename, ex. 02-12-11`.zip using /sl for this one. 1st method (xxcopy, wzzip & wmfren) ---------------------------------------------------------- @echo off XXCOPY C:\ G:\temp\ /da#0/s/r/h/pb/yy wzzip -m -u -ex -r -P g:\temp\.zip g:\temp\* wmfren g:\temp\.zip g:\temp\C$YE:4-$MO-$DA.zip XXCOPY G:\Backups\*.zip /db#10/rsy/ed/pd0/y XXCOPY G:\temp\*.zip G:\Backups\ /rcy/ed/pd0/pb/y ---------------------------------------------------------- 2nd method (xxcopy & wzzip) ---------------------------------------------------------- @echo off XXCOPY C:\ G:\temp\ /da#0/s/r/h/pb/yy wzzip -m -u -ex -r -P g:\temp\.zip g:\temp\* XXCOPY G:\temp\*.zip G:\temp\C/$YY-MM-DD$\ /rcy/ed/pd0/pb/y XXCOPY G:\temp\*\*.zip G:\Backups\ /sl/pb/yy XXCOPY G:\Backups\*.zip /db#10/rsy/ed/pd0/y XXCOPY G:\temp\*\*.zip /rsy/ed1/pd0/pb/y ---------------------------------------------------------- dayvah49
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.