Re: Archive script for selected directory names

2009-01-22 Thread Robben Leaf
I think I got it worked out. It goes a little like this: set MONTH=%date:~4,2% if (%MONTH%) == (01) set ARCHFOLDER=m09 if (%MONTH%) == (02) set ARCHFOLDER=m10 ... etc. for all 12 months net use W: \\IP_address\vol0 /user:username password W: FOR /F %%d IN ('dir /s /b %%ARCHFOLDER%%') DO (C:\path\d

Re: Archive script for selected directory names

2009-01-22 Thread Huebner,Andy,FORT WORTH,IT
Have you considered robocopy to move the data by date and file spec to an archive location then grabbing the whole thing with TSM? Andy Huebner -Original Message- From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of Robben Leaf Sent: Thursday, January 22, 2009 1:42 PM

Re: Archive script for selected directory names

2009-01-22 Thread Robben Leaf
That might work, if there weren't also other, non-log files and directories on that share that are older than 90 days, that we do NOT want archived and deleted. But it's worth keeping in mind. Thanks for the suggestion! Robben Leaf From: Shawn Drew To: ADSM-L@VM.MARIST.EDU Date: 01/22/2009 1

Re: Archive script for selected directory names

2009-01-22 Thread Shawn Drew
Instead of trying to deal with the naming convention of the directories, I would create an archive file list by simply doing a file search for any file/directory that is older than 90 days. I'm sure you can find a windows version of "gnu find" that can do this. Regards, Shawn ___