Solved

How to copy files and folders from an EXT3 mount to an NTFS mount and skip illegal names

Posted on 2004-10-20
4
251 Views
Last Modified: 2010-04-19
Hi there
I've just migrated from a Linux server to a Windows 2003 server. I have used some software from Paragon (Mount Everything) to mount our old EXT3 disk on the new server. I am now trying to copy 100gig of data from the EXT3 drive onto a new drive on the server.
The problem is that there are a large number of files and folders that begin with a . (a period). This is used to mark them as hidden under Linux (they are there because of Netatalk). When I try to copy a whole load of folders it says

"Cannot copy xxx The file name, directory name or volume label syntax is incorrect"

I can do a search for all all these files/folders by searching for .*  -  trouble is I can't delete them.

So does anyone know of a way round this. Is there a way to make Windows just skip over illegal files during a copy instead of choking on them.

Many thanks in advance,
Julian
0
Comment
Question by:Boffgroup
4 Comments
 
LVL 7

Assisted Solution

by:corneliup
corneliup earned 300 total points
ID: 12357600
You can use RoboCopy.exe from the win2k3 resource kit with the following switch:

/XF ExFile
Excludes files matching given names, paths, or wildcard characters.


Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
0
 
LVL 15

Accepted Solution

by:
harleyjd earned 200 total points
ID: 12357630
I use xcopy with the /c switch which continues on error.
0
 
LVL 1

Expert Comment

by:blueivy
ID: 12359661
Use xcopy <source> <destination> /s /e /c /h /y

This will copy the source to the destination, copy all subfolders (/s) even if they are empty (/e), continue on error (/c), copy hidden files (/h) and will not prompt you to overwrite.

I use this all the time. A lot quicker than the GUI copying.
0
 
LVL 4

Author Comment

by:Boffgroup
ID: 12359803
I've split the points as corneliup was correct but I actually used harleyjd's solution and it came in only 2 minutes later.
So thanks guys - both right on money and saved me a load of hassle.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now