now a dump question (was Re: tar question...)
Brad De Vries
devriesbj
Mon May 17 11:47:09 PDT 2004
--- Tim Wunder <tim at thewunders.org> wrote:
> On Monday 05 May 2003 9:55 am, someone claiming to
> be Net Llama! wrote:
> > On Mon, 5 May 2003, Tim Wunder wrote:
> > > I want to tar -zcvf all the data in /home,
> except what's contained in
> > > /home/<somedir>. Any ideas how to do that?
> >
> > tar has an --exclude switch. Check the man page.
>
> Hmmm... missed that. Thanks.
>
> I'm also trying to understand dump a little better.
> I have this in a backup
> script:
> /sbin/dump 0uBf 10000000 /dev/st0 /home
> Which is supposed to dump the /home partition
> (/dev/sda5) to tape. Well, my
> disk usage on /home is at or near the uncompressed
> capacity of my tape drive,
> so I started reading thru the dump man page, and it
> looks like you can
> compress the dump. Based on what I read, I thought I
> just needed to add a "z"
> in there, like so:
> /sbin/dump 0uzBf 10000000 /dev/st0 /home
> But this doesn't seem to work for me. Is there
> anything obviously wrong there?
> I'm gonna be using tar for the backup for the time
> being, but it seems to be
> alot easier to restore individual files using
> dump/restore. So I'd like to
> get a functional compressed dump.
>
> BTW, this is on a RHL 7.0 server.
>
> Thanks,
> Tim
You could try:
/sbin/dump -0u -z 2 -B 10000000 -f /dev/st0 /home
The only real change was adding the "compression
level" parameter to the -z option.
This seems to work on RHL 7.3.
Brad.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the Linux-users
mailing list