What's wrong with this command?

Steven M. Klass plug-discuss@lists.PLUG.phoenix.az.us
Tue, 26 Jun 2001 09:32:34 -0700


Hey all,

I am working on a back-up script.  I'm really into the meat of if right now 
and I can't figure out how to do something.  Basically my backup script will 
recreate the directory structure and only tar the files in the directory.  To 
recreate the directory structure I use
  find $SOURCE -type d -exec mkdir $BACKUPDIR{} \;

Now for the fun part looking into each directory and and only taring the 
files and symbolic links.. I'm trying variations of the above to no avail. 
Here is the idea that I have been working with..

find $SOURCE -type d -exec tar -czvf $BACKUPDIR/{}/badkup.tar.gz  SOURCE/{}\: 

This doesn't work. Can someone help me out here? Do I need to implement this 
into a larger function?

-- 

Steven M. Klass
Physical Design Engineering Manager

Andigilog Inc.
7404 W. Detroit Street, Suite 100
Chandler, AZ 85226
Ph: 480-940-6200 ext. 18
Fax: 480-940-4255

sklass@andigilog.com
http://www.andigilog.com