[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar 1.13.17 Alpha Linux problems
From: |
Paul Eggert |
Subject: |
Re: tar 1.13.17 Alpha Linux problems |
Date: |
Sun, 14 Apr 2002 21:43:13 -0700 (PDT) |
> From: "James W. McKelvey" <address@hidden>
> Date: Sun, 14 Apr 2002 19:02:27 -0700
>
> By the way, there's a minor problem with --exclude that's a real puzzle. My
> dump script writes to a log file, and I try to exclude the log file. But
> it won't be excluded!
>
> label=`date | tr " :" "__"`
> log=$PWD/$label.log
> ...
> /usr/local/bin/gtar --create --label $label --verify --verbose \
> --file /dev/st0 --totals --preserve-permissions \
> --exclude /proc --exclude /tmp --exclude /mnt \
> --exclude /dev --exclude /var/spool --exclude $log \
> --exclude /SmaugA --exclude /SmaugB --exclude /SmaugC \
> / >$log 2>&1
Is the log file saved into the tar image using exactly the same name
as $log? If $PWD uses a symbolic link, for example, the file won't
be excluded.