On 5/2/06, gili gili <[EMAIL PROTECTED]> wrote:
Hi list…
I need to backup and restore a server. I decided to make an image using dd
and gzip\bzip.
The problem is that the file is too big to fit into a DVD so I need to split
it.
I restore the server using linux live CD.
I know I can use "split" command. But the restore is problematic…
cat backup.img.gz.* | gzip -dc | dd of=/dev/hda1
But if I change the DVD to the one that have the new image, cat will "lose
count"…
Untested idea:
1. "mkfifo fifo"
2. do "cat fifo fifo fifo... | gzip...". repeat "fifo" on the cat
command line to the
number of input DVD's.
3. dd from the dvd's into "fifo", one at at time.
The repating of "fifo" is required because every time "dd" closes the fifo cat
gets an EOF. You overcome this by telling cat that its next file to read is
(tararam...): fifo.
I need an idea …
Hope this works. Would be curious to hear.
10X,
Gili
--Amos
--
"(God) is my favourite fictional character." - Homer Simpson
================================================================To unsubscribe,
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]