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]
On 5/3/07, Stephen Montgomery-Smith <EMAIL:PROTECTED> wrote:

Maybe something like this? I haven't tested it, but I would think that something like this would work.

tar cvf --exclude "*mp3" - directory-to-copy \
| (cd where-you-want-copy; tar xfp -)

You can remove the first "v" if you don't want verbose output.


Yes, that's what I do, but like this:

tar -c --exclude "*mp3" sourcedir | tar -xC destdir

The nice thing about tar is, you can use it in pipes etc.

So if I wanted to copy to my mlug account, I could do this:

tar -c --exclude "*mp3" sourcedir | ssh mlug.missouri.edu tar -xC destdir

Regards,
Mark
EMAIL:PROTECTED
--
Mark Rages, Engineer
Midwest Telecine LLC
EMAIL:PROTECTED

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