[svlug] /bin/tar: Removing leading `/' from member names messageannoyance

Daevid Vincent daevid at daevid.com
Wed May 28 21:11:49 PDT 2003


Huh? What does grep have to do with a script running tar? You lost
me....

I have something like this:

        if test "$1" = "Sun" ; then
        # weekly a full backup of all data and config. settings:
            echo -n "Full backup of
$BACKUPDIR/$6-$2-$3_${DIRNAME}_full.tgz..."
            /bin/tar $TARFLAGS --file
"$BACKUPDIR/$6-$2-$3_${DIRNAME}_full.tgz" "$DIR"
            rm -f $BACKUPDIR/$6-$2-$3_${DIRNAME}_diff.**
            echo "completed."
        else
        # incremental backups
            echo -n "Differential backup of
$BACKUPDIR/$6-$2-$3_${DIRNAME}_diff.tgz..."
            find $DIR -depth -type f -ctime -1 -print > $LIST
            /bin/tar $TARFLAGS --file
"$BACKUPDIR/$6-$2-$3_${DIRNAME}_diff.tgz" --files-from="$LIST"
            rm -f $LIST
            echo "completed."
        fi

> -----Original Message-----
> From: svlug-bounces+daevid=daevid.com at lists.svlug.org 
> [mailto:svlug-bounces+daevid=daevid.com at lists.svlug.org] On 
> Behalf Of Karsten M. Self
> Sent: Wednesday, May 28, 2003 8:33 PM
> To: 'SVLUG'
> Subject: Re: [svlug] /bin/tar: Removing leading `/' from 
> member names messageannoyance
> 
> 
> on Wed, May 28, 2003 at 08:24:17PM -0700, Daevid Vincent 
> (daevid at daevid.com) wrote:
> > anyone know how to get rid of that annoying message in a 
> shell script?
> > "/bin/tar: Removing leading `/' from member names"
> > 
> > i want to still see errors from my script and possibly any 
> other output,
> > 
> > so redirection is not really an option.
> 
>     grep -v
> 
> -- 
> Karsten M. Self <kmself at ix.netcom.com>        
> http://kmself.home.netcom.com/
>  What Part of "Gestalt" don't 
> you understand?
>    Data corrupts.  Absolute data corrupts absolutely.
>     -- Ed Self's corollary of Atkinson's Law.
> 
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
> 





More information about the svlug mailing list