Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The company I work for has a 'company wide' share that is mapped on all of our machines. Over the years this has grown into the terrabytes and now lucky me has been tasked with bringing this back under control.

I'm looking for a robust script/utility that can find files by the following criteria and move them to a 1TB USB drive that I've purchased...

  • files not modified in the last 10 years
  • that are over 3mb in size

The script will need to recreate the folder structure on the USB drive, so if we have a member of staff who decides they need one of these files we can get it back easily.

Note: The company does have proper offsite backups of this data, the USB drive is just to enable quicker access to the data if needed.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

The hands down best method for moving files/folders from a source system is to use robocopy in my opinion. You should look at the TechNet reference on Robocopy for the proper syntax.

In glancing at the "File Selection Options" you will want to use a combination of /min:3072000 and /minage:3650 or /minlad:3650. Regardless, there are innumerable options there for you to review.

share|improve this answer
    
Thanks I cant believe I'd never come across robocopy before! –  user1468226 Jan 23 at 13:12
    
Glad to be of service. I've never had to use the file filtering options as I was just trying to get files from x to y. But I love how you can specify many threads. –  websch01ar Jan 23 at 13:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.