Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moving a million files

Posted on 2014-03-21
3
Medium Priority
?
230 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 38

Accepted Solution

by:
Mahesh earned 2000 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 38

Assisted Solution

by:Mahesh
Mahesh earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Screencast - Getting to Know the Pipeline

916 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