Amanda-Users

Re: how to dd if=... a chunked dump blob?

2005-12-06 08:48:40
Subject: Re: how to dd if=... a chunked dump blob?
From: Alexander Jolk <alexj AT buf DOT com>
To: Will Partain <will.partain AT verilab DOT com>
Date: Tue, 06 Dec 2005 14:30:07 +0100
Will Partain wrote:
   dd if=foo.verilab.com._.1 bs=32k skip=1 | tar tfv - | sort +2nr | head
[...]

What if, instead, my dump blob is "chunked", as in this case (1GB chunks):

Well, you either do some shell magic:
for i in foo.verilab.com._.1*; do dd if=$i bs=32k skip=1; done | tar tvf - | ...

or you use amrestore on the holding file.

Alex

--
Alexander Jolk         /         BUF Compagnie
tel +33-1 42 68 18 28 /  fax +33-1 42 68 18 29

<Prev in Thread] Current Thread [Next in Thread>