Link to home
Start Free TrialLog in
Avatar of mltets
mltetsFlag for United States of America

asked on

Best way to move 80,000+ files

Here is my situation.  I've been tasked with archiving off all files from a large directory structure that have not been modified in the last two years.  I ran a simple report and there are in excess of 80,000 of them.  My plan is to move them to another volume on the same server (maintaining directory structure) where they will sit for awhile prior to being archived off to disk (for easy restore purposes).  I've toyed with the idea of working some excel magic to build a batch file using individual robocopy commands which would work, but an 80,000+ line batch file seems somehow inherently wrong.  
The problem is that I don't want to copy entire directories, just certain identified files within the structure. Maybe a script which reads in paths and file names from a csv file and runs a command...    

I just know that there's a better way to do it.  I'm working under a deadline and will place this one at 500 points due to the complexity and importance of the task.  I'd make it 600, but they won't allow it.
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mltets

ASKER

And this will maintain the directory structure and everything?  Just pulling out the old files?
Avatar of mltets

ASKER

Just wanting to verify...
/MINAGE:n  
MINimum file AGE - exclude files newer than n days/date.
(If n < 1900 then n = no of days, else n = YYYYMMDD date).

This looks at the modified date?  or the Accessed date?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mltets

ASKER

Robocopy will definately do the trick.  Let me take a glance at richcopy and compare contrast...
Avatar of mltets

ASKER

Both will work very well.  Robocopy looks great from a command line.  Richcopy works great as well, but I had to wrestle with it before I caught onto the view advanced.  I'll test them both out and use one of them.  Thanks for the help guys!