Re: amrecover hard codes restore arguments that fail

Peter Collinson <[email protected]> Mon, 26 Jan 2026 18:36:28 +0000
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
--Apple-Mail=_AFC86DF1-965E-4878-84E6-13FA3F2E8959
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Great, thanks for the heads up. Can you do some tests? You may know the =
stuff below, please don=E2=80=99t be cross that I am suggesting some =
commands, it just can make things easier sometimes - also it helps =
others who may not know.

Be interesting to know how restore is being called for real tapes - ps =
ax should tell you if you start amrecover DailySet1 and pull a file from =
the tape.

It will probably be called with
	restore xbf 2 -=20

Does restore by itself work for you without giving it a block factor? I =
think that it ought to.

I would guess that to test by hand, you=E2=80=99d do:
	dd if=3Dtapedev bs=3D32k skip=3D1 | gunzip -c | restore -i -f -
which should put you into interactive restore.

Also assuming you are using gzip on your dumps.

Thinking about it, is restore always a data sink for a stream? If so it =
must always have to work out the blocking that=E2=80=99s being used. =
Does amenda ever read raw information from tapes where the blocking may =
be a consideration? Also, don=E2=80=99t modern tape drivers just hide =
this problem from the system, that perhaps wants to deal in bigger =
blocks these days?

Regards
--------------------------------------------------
Peter



> On 26 Jan 2026, at 17:57, Lyndon Nerenberg (VE7TFX/VE6BBM) =
<[email protected]> wrote:
>=20
> Peter Collinson writes:
>> Do
>> people still use tapes with a fixed block size?
>=20
> I use LTO tapes on a regular basis.
>=20
> --lyndon
>=20


--Apple-Mail=_AFC86DF1-965E-4878-84E6-13FA3F2E8959
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div>Great, thanks for the heads up. Can =
you do some tests? You may know the stuff below, please don=E2=80=99t be =
cross that I am suggesting some commands, it just can make things easier =
sometimes - also it helps others who may not =
know.</div><div><br></div><div>Be interesting to know how restore is =
being called for real tapes - ps ax should tell you if you start =
amrecover DailySet1 and pull a file from the =
tape.</div><div><br></div><div>It will probably be called =
with</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>restore xbf 2 -&nbsp;</div><div><br></div>Does restore by itself =
work for you without giving it a block factor? I think that it ought =
to.<div><br></div><div>I would guess that to test by hand, you=E2=80=99d =
do:</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>dd if=3Dtapedev bs=3D32k skip=3D1 | gunzip -c | restore -i -f =
-</div><div>which should put you into interactive =
restore.</div><div><br></div><div>Also assuming you are using gzip on =
your dumps.</div><div><br></div><div>Thinking about it, is restore =
always a data sink for a stream? If so it must always have to work out =
the blocking that=E2=80=99s being used. Does amenda ever read raw =
information from tapes where the blocking may be a consideration? Also, =
don=E2=80=99t modern tape drivers just hide this problem from the =
system, that perhaps wants to deal in bigger blocks these =
days?</div><div><br></div><div>Regards</div><div><div><div dir=3D"auto" =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: =
after-white-space;"><div>-------------------------------------------------=
-<br>Peter</div></div><br class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">

</div>

<br><div><blockquote type=3D"cite"><div>On 26 Jan 2026, at 17:57, Lyndon =
Nerenberg (VE7TFX/VE6BBM) &lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>Peter Collinson =
writes:<br><blockquote type=3D"cite"> Do<br> people still use tapes with =
a fixed block size?<br></blockquote><br>I use LTO tapes on a regular =
basis.<br><br>--lyndon<br><br></div></div></blockquote></div><br></div></b=
ody></html>=

--Apple-Mail=_AFC86DF1-965E-4878-84E6-13FA3F2E8959--