> Thanks in advance for any and all help on this.
> I have a script as follows:
> BCKP_LIST="/etc /var /home/*/www/*.*/logs/"
> BCKP_FILE="`date -I`.backup.tar"
> cd $BACKUPDIR
> tar -cpf $BCKP_FILE $BCKP_LIST -X uh_list
> gzip `date -I`.backup.tar
> chown root.root $FILE_NAME
> chmod 0400 $FILE_NAME
> (uh_list is a list of files I want to exclude from the /var/ directory)
> If I run the script, it doesn't work. It creates the tar file, but
> there's nothing in it. Running the script one line at a time from the
> command line tells me that tar can't open /etc/, as it is a directory.
is that you have a typo in the variable name BCKP_FILE on one of the
lines that mentions it, so you're ending up with:
tar -cpf $BCKP_LIST ...
Try running the script with "sh -x" to see the expansion of each line as
*** PLEASE post questions in newsgroups, not directly to me ***