MLUG: RE: [MLUG] cp -R --skip [pattern]?
RE: [MLUG] cp -R --skip [pattern]?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mike's requirement could probably be satisfied with something like:
 
  rsync -auv --exclude "**.mp3" /path/to/old/. /path/to/new/.
 
I use the heck out of rsync nearly every day, but I generally stick with the find/tar/cp/mv/cpio/etc. standards as they're available even when rsync isn't.  The "*" and "**" patterns in rsync's exclude syntax always throw me for some reason, hence my overdependence on the rsync man page...
 
  ryan woodsmall
    EMAIL:PROTECTED

"Be well, do good work, and keep in touch." - Garrison Keillor

________________________________

From: EMAIL:PROTECTED on behalf of Pottinger, Hardy J.
Sent: Thu 5/3/2007 2:26 PM
To: MLUG Members
Subject: RE: [MLUG] cp -R --skip [pattern]?



> There's about a million ways to do it actually...

Indeed. I like rsync for this kind of thing because it's one single
command, it has a dry-run option, it's interruptible (just rerun the
command, and it'll only copy what needs to be copied), it has an
intelligent filter for omitting version control folders/data (svn or
cvs), works across a network...

--Hardy

<<winmail.dat>>

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members