Amanda-Users

Re: amdd/ammt usage

2006-01-29 11:30:24
Subject: Re: amdd/ammt usage
From: Ian Turner <ian AT zmanda DOT com>
To: Omer <omer AT no-log DOT org>
Date: Sun, 29 Jan 2006 10:51:17 -0500
On Sunday 29 January 2006 10:28 am, Omer wrote:
> ... which produce three distinct files on the tape. How can I merge the
> label and the tar file so I can restore it with:

You have to write the entire file at once. Anytime you close the file 
descriptor (that is, a program exits), the system will automatically write a 
filemark on the tape.

So, do something like
(echo $HEADER | dd bs=32k count=1 conv=sync; # To pad to 32kb
 tar -cf- ...; ) | amdd bs=32k ...

Cheers,

--Ian
-- 
Forums for Amanda discussion: http://forums.zmanda.com/

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