• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

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.
0
mltets
Asked:
mltets
  • 4
2 Solutions
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Robocopy can do this for you.  
http://en.wikipedia.org/wiki/Robocopy

Options:
/mov /e /minage:20090401
0
 
mltetsAuthor Commented:
And this will maintain the directory structure and everything?  Just pulling out the old files?
0
 
mltetsAuthor Commented:
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?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Donald StewartNetwork AdministratorCommented:
Use Richcopy which is easier to use than robocopy
 
http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx?pr=blog 
0
 
mltetsAuthor Commented:
Robocopy will definately do the trick.  Let me take a glance at richcopy and compare contrast...
0
 
mltetsAuthor Commented:
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!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now