Amanda-Users

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

2005-12-06 17:29:29
Subject: Re: how to dd if=... a chunked dump blob?
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Alexander Jolk <alexj AT buf DOT com>
Date: Tue, 06 Dec 2005 17:20:29 -0500
Alexander Jolk wrote:
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 - | ...

It will not work if you have more than 10 chunk files because the '*' wildcard will not list them in the correct order. You will have to list them manually.

Jean-Louis


or you use amrestore on the holding file.

Alex



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