- To: Oscar Plameras <oscarp@xxxxxxxxxxx>
- Subject: Re: [SLUG] Travan tapes under GNU/Linux (Debian Woody)
- From: mlh@xxxxxxxxxxxxxxxxxxx
- Date: Wed, 14 May 2003 13:17:56 +1000
- Cc: slug@xxxxxxxxxxx
- Cc: mlh@xxxxxxxxxx
- User-agent: Mutt/1.2.5.1i
On Wed, May 14, 2003 at 06:12:35AM +1000, Oscar Plameras wrote:
> find /home -print > /tmp/tmp.lst && tar zcvf /dev/tape -F /tmp/tmp.lst | tee
> /tmp/tape.log
I you wanted to avoid the delay and space requirements
of creating /tmp/tmp.lst, then you could use a named
pipe, aka fifo:
pipename=/var/run/tar-fifo-$RANDOM
mknod $pipename p
find /home -print > $pipename &
tar zcvf /dev/tape -T $pipename | tee tape.log
Matt
PS. I avoid using /tmp or predictable names for the
fifo or temporary files, as that's a security problem.