Solved

Moving a million files

Posted on 2014-03-21
3
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

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 37

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

632 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