Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" <_garbage_collector_ AT telia DOT com> To: "ML Cygwin" Subject: RE: cp to flash drive very slow Date: Thu, 30 Sep 2004 22:13:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: X-IsSubscribed: yes you (cygwin-owner AT cygwin DOT com) wrote on : > Well, yes. The flash drive is a Sandisk Cruzer Mini which is USB 2.0 > with fallback to 1.1. The computer is a Dell Dimension 4600 which > claims eight USB 2.0 connectiors. Running Windows XP. Right, then we know. ;-) > I don't think caching is the difference. I was able to unzip the .zip > file right after xcopy had copied it. ...which doesn't proove a thing about caching or not. > Is there anything faster than cp for copying out of the cygwin tools? > I'm working out some scripts to share files between my work machine > and my home machine using the flash drive. I could use xcopy but > then I'd have to go through the filename translation doohicky. > > dar *** Untested **** suggestion: --- #!/bin/bash src="/home/dar/personal-projects /projects/" dst="/cygdrive/z" # for the USB drive for d in $src; do find $d -type d | ( while read dir; do # cannot be used on SHARES mkdir -p "$dst/$dir" # assuming xcopy is in PATH xcopy "$(cygpath -D "$dir")" "$(cygpath -D "$dst/$dir")" done ) done --- Does it need to be more complex? Otherwise the cygwin 'rsync' or 'unison' packages might be useful... Others might be able to help with them. /Hannu E K Nevalainen, B.Sc. EE Microcomputer systems --72--> ** mailing list preference; please keep replies on list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/