Solved

Moving a million files

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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