Solved

Moving a million files

Posted on 2014-03-21
3
210 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 36

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 36

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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