Solved

Moving a million files

Posted on 2014-03-21
3
204 Views
Last Modified: 2014-04-03
I have a windows 2003 server that stores thousands and thousands of files that are created by another program. All PDF and MS Doc files. I need to move files off that are 3 years or older (by creation date) to another folder. This server doesn't have a lot of power behind it so I won't be able to open that folder to see the files. What is the best way to do this?
0
Comment
Question by:stlhost
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39946224
If you are not able to open this folder from itself server,
you need to access that folder with $ share from another servers and copy from there
May be you can use Robocopy for this
You can use any windows 2008 \ 2008 R2 server \ win7 for this as it contains Robocopy by default
Once you copied with robocopy, you can delete files from source
Run Robocopy from elevated command prompt

Robocopy syntax:
robocopy <source path> <destination path> /e /zb /Copyall /mir /log+:C:\copylog.log
Ex:
robocopy \\2003SRV\D$\files\*.* D:\files /e /zb /Copyall /mir /log+:C:\copylog.log

This will copy all your files from 2003 source to new destination with logs
In case files are getting added, you can run above robocopy command again so that it will copy added files only (incremental)

Hope that helps

Mahesh
0
 
LVL 2

Author Comment

by:stlhost
ID: 39946263
How do I specify a date range? I dont want to copy the entire directory to another I only need to copy files that are 3 years or older.
0
 
LVL 35

Assisted Solution

by:Mahesh
Mahesh earned 500 total points
ID: 39946305
Include one more switch in above command

/MAXAGE:n (:: MAXimum file AGE - exclude files older than n days/date.)
where n represents days, else n = YYYYMMDD date).

You can type robocopy /? to find out complete command syntax

Mahesh
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now