bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Add an option to read pipe contents


From: Luiz Angelo Daros de Luca
Subject: [Bug-tar] Add an option to read pipe contents
Date: Mon, 23 Jun 2008 12:06:29 -0300

Hello,

Tar always saves a "pipe file" and do not permit to backup its contents.

mkfifo a
echo 123 > a &
tar -cz a | tar -tzv
prw-rw-r-- pcarga/pcarga     0 2008-06-23 11:58 a

Instead of:

mkfifo a
echo 123 > a &
tar -cz a -read-pipes-to-files | tar -tzv
-rw-rw-r-- pcarga/pcarga     4 2008-06-23 11:58 a

My problem is that I must backup an oracle database that its dump does not fit in local filesystem. This way
I'm not able to create temp files. Also, I wanted to include some diretories in this same tar. I wanted to use something like this:

mkfifo $FIFO
$ORACLE_HOME/bin/exp file=$FIFO &
tar -cz $FIFO other-dir1 other-dir2 | ssh remoteHost "cat > mybackup"

Any solution for this case?

--
Luiz Angelo Daros de Luca
address@hidden
ICQ: 19290419

I Know, "Where you wanted to go today",
but I decided to stop here instead!
MS Windows
reply via email to

[Prev in Thread] Current Thread [Next in Thread]