What's wrong with this command?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Steven M. Klass
Date:  
Subject: What's wrong with this command?
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


http://www.andigilog.com