![]()
[<<]Message[>>] Author[>>] Subject[>>] Thread
Number : 261 Date : 2001-06-21 Author : Jon Hugdahl Subject : Generational copies for archiving Size(KB) : 1
I archive certain data files into generations, thusly rem * PIM files are archived every morning. rem * Oldest archived folder is SKW-15, delete it. deltree %To%SKW-15 rem * Rename the second oldest folder to the oldest name, etc.. Preserves create dates move /-Y %To%SKW-14 %To%SKW-15 move /-Y %To%SKW-13 %To%SKW-14 move /-Y %To%SKW-12 %To%SKW-13 move /-Y %To%SKW-11 %To%SKW-12 move /-Y %To%SKW-10 %To%SKW-11 move /-Y %To%SKW-09 %To%SKW-10 move /-Y %To%SKW-08 %To%SKW-09 move /-Y %To%SKW-07 %To%SKW-08 move /-Y %To%SKW-06 %To%SKW-07 move /-Y %To%SKW-05 %To%SKW-06 move /-Y %To%SKW-04 %To%SKW-05 move /-Y %To%SKW-03 %To%SKW-04 move /-Y %To%SKW-02 %To%SKW-03 move /-Y %To%SKW-01 %To%SKW-02 rem * Always copy into the -01 folder. It will have today's date. echo Date of last backup > %From%SKW98\@FBU_date rem * Above done to preserve a date when the generations are copied to CDRW xxcopy %From%SKW98\ %To%SKW-01\ /E /Y /R /C /H /EC /Q1 I have variants of this code for other folders that I run only weekly or monthly. In addition, daily, I xxcopy certain critical data folders into a separate area, only newer files copied. 2cents
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.