Re: DD and split problem (need ideas)....

2006-05-09 Thread gili gili
We got a winner 10X for the help! Gili Subject: Re: DD and split problem (need ideas) Date: Tue, 2 May 2006 12:14:32 +0300 On Tue, 2 May 2006 18:35:25 +1000, Amos Shapira wrote: > On 5/2/06, gili gili wrote: > > > > I know I can use "split" command. But th

Re: Bash design principles for handling large subshell data piping ? (WAS: DD and split problem (need ideas)....)

2006-05-02 Thread Muli Ben-Yehuda
On Tue, May 02, 2006 at 10:34:14PM +0300, Yedidyah Bar-David wrote: > How is it tunable? A quick google search finds (for me) only an external > patch providing /proc/sys/fs/pipe-sz. Is there such a thing in > vanilla? It's not tunable - the kernel will just do the right thing. It is an area in a

Re: Bash design principles for handling large subshell data piping ? (WAS: DD and split problem (need ideas)....)

2006-05-02 Thread Yedidyah Bar-David
On Tue, May 02, 2006 at 10:16:45PM +0300, Muli Ben-Yehuda wrote: > On Tue, May 02, 2006 at 09:16:14PM +0300, Yedidyah Bar-David wrote: > > > When you run 'prog1 | prog2', both run in parallel, having a small > > buffer (IIRC in Linux one page = 4KB, not sure if tunable) > > Maximum capacity is 16

Re: Bash design principles for handling large subshell data piping ? (WAS: DD and split problem (need ideas)....)

2006-05-02 Thread Muli Ben-Yehuda
On Tue, May 02, 2006 at 09:16:14PM +0300, Yedidyah Bar-David wrote: > When you run 'prog1 | prog2', both run in parallel, having a small > buffer (IIRC in Linux one page = 4KB, not sure if tunable) Maximum capacity is 16 pages at the moment. Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org

Re: Bash design principles for handling large subshell data piping ? (WAS: DD and split problem (need ideas)....)

2006-05-02 Thread Yedidyah Bar-David
On Tue, May 02, 2006 at 08:52:18PM +0300, Maxim Vexler wrote: > >Instead you can use subshell (tested) like this: > > > >( > >FLAG=any > >while [ $FLAG ] > >do > >cat /DVD-MOUNT-DIR/backup.img.gz.* > >echo "Please put next DVD and press Y + Enter" > /dev/tty > >e

Bash design principles for handling large subshell data piping ? (WAS: DD and split problem (need ideas)....)

2006-05-02 Thread Maxim Vexler
On 5/2/06, Ehud Karni <[EMAIL PROTECTED]> wrote: On Tue, 2 May 2006 18:35:25 +1000, Amos Shapira <[EMAIL PROTECTED]> wrote: > On 5/2/06, gili gili <[EMAIL PROTECTED]> wrote: > > > > I know I can use "split" command. But the restore is problematic… > > cat backup.img.gz.* | gzip -dc | dd of=/dev/h

Re: DD and split problem (need ideas)....

2006-05-02 Thread Kfir Lavi
Here are some backup programs: (list) http://www.thefreecountry.com/utilities/backupandimage.shtml http://www.linuxsoft.cz/en/sw_list.php?id_kategory=89 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

Re: DD and split problem (need ideas)....

2006-05-02 Thread Ehud Karni
On Tue, 2 May 2006 18:35:25 +1000, Amos Shapira <[EMAIL PROTECTED]> wrote: > On 5/2/06, gili gili <[EMAIL PROTECTED]> wrote: > > > > 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 hav

Re: DD and split problem (need ideas)....

2006-05-02 Thread Amos Shapira
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" c

DD and split problem (need ideas)....

2006-05-02 Thread gili gili
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 ba