Solved

Robocopy fails to move files from large folder

Posted on 2010-09-02
3
1,233 Views
Last Modified: 2012-05-10
Hi there

I've been successfully using this command to move files based on the date to another folder for some time now. However, when I use the same command on a folder with a lot of files (1 million+ files) it fails with the message "The specified Network name is no longer valid".

Any ideas how else I can move files out of this one huge folder? Robocopy doesn't seem to be the answer. I can't even bring up the folder in Windows Explorer as its too large and hangs Explorer. But I need to retain the files, just move them into other folders based on the date.
many thanks

robocopy "\\SERVER_NAME\d$\SOURCE_FOLDER" \\SERVER_NAME\d$\DESTINATION_FOLDER /minage:20060101 /mov

0
Comment
Question by:stack888
  • 2
3 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 33593268
What happens if you map drives first?

I.e,

Net use S: \\Server_Name\d$\source_folder <Enter>
Net use T: \\Server_Name\d$\Target_folder <Enter>

robocopy S:\ T:\ /minage:20060101 /mov

Also - since it 'appears' this is both sourced and targeted on the same server, why not do it on the console?  Or did I assume incorrectly?
0
 
LVL 2

Author Closing Comment

by:stack888
ID: 33598143
thanks Sirbounty. I was being a complete idiot! You correctly pointed out that i could just run this on the console as both folders were local. Now it runs ok. Interesting that Robocopy struggles with large folders when you use UNC paths. Something to remember for future use.
thanks for your help.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 33598584
Not so sure it's robocopy - just my opinion...you're adding extra overhead relying on the network dependency.  Glad it's working for you though.  Thanks for the grade! :^)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

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