Re: question about piping and standard output




dump -0 -a -u -f - /dev/sda1 | split -b2000m - foo.dump

The question is, how can I also include tar and gzip in this command
line to tar and gzip the split'd files?

How about adding couple more commands to this?

dump -0 -a -u -f - /dev/sda1 | split -b2000m - foo.dump && tar cvzf
foo.tar.gz && rm foo.dump*

to hide tar's output

dump -0 -a -u -f - /dev/sda1 | split -b2000m - foo.dump && tar cvzf
foo.tar.gz > /dev/null && rm foo.dump*

I'm not familiar enough with how shell variables, pipes, and redirects
work to make this combination happen as I want.

Maybe someone has a better answer than mine.

specs: running Redhate 7.x, kernel version: 2.4.20-43.7.legacysmp,
tar (GNU tar) 1.15.1, split (coreutils) 5.2.1, gzip 1.3.5, dump 0.4b40
(using libext2fs 1.37 of 21-Mar-2005)

My specs: Fedora Core release 4 (Stentz) LSB_VERSION="1.3",
2.6.15-1.1831_FC4 #1, other - same as yours

.