Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Bash / Shell Scripting (http://www.programmingforums.org/forum26.html)
-   -   How To Use Find To Backup Cvs Directory? (http://www.programmingforums.org/showthread.php?t=547)

siegfried Sep 14th, 2004 3:03 PM

CVSNT (and probably CVS) recursively enter each (sub)directory and create a subdirectory called CVS.

How do I use WinZIP to create an archive that recursively contains all the files in a directory tree, except those in directories with the name "CVS"?

I'm running bash from cygwin on a window 2003 server.

Since I'm not even sure one can use WinZIP from a shell script, I better broaden the question to include jar or "tar cvfz".

I expect I'd use /usr/bin/find.

Thanks,
Siegfried

erebus Sep 14th, 2004 9:23 PM

Try:
:

$ find . \! -name "CVS" -print | xargs tar cvfz


All times are GMT -5. The time now is 4:45 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC