Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 08:25:30 +1000
From:      Peter Jeremy <peter@rulingia.com>
To:        George Mitchell <george+freebsd@m5p.com>
Cc:        FreeBSD Hackers <freebsd-hackers@FreeBSD.org>
Subject:   Re: Indexing a dump file
Message-ID:  <20180527222529.GB96747@server.rulingia.com>
In-Reply-To: <182832e1-4968-4a83-02a3-84cfa9def675@m5p.com>
References:  <182832e1-4968-4a83-02a3-84cfa9def675@m5p.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2018-May-27 12:36:55 -0400, George Mitchell <george+freebsd@m5p.com> wro=
te:
>I'm drowning in old dump files and I would like to index them.
>"restore -t" gives me a list of all the files in a dump, but I would
>like to get the date of last modification and the size of each as well.
>Is there something short of just doing a "restore" and "ls -lR" that
>would get me the information?                              -- George

I'll second the suggestion of hacking restore to DWYW.  Note that all
the file metadata is at the beginning of the dump so this doesn't require
reading the entire dump.  Unfortunately, the dump format is not documented
in a man page so you will need to UTSL.

>P.S. A hash of each file would be icing on the cake, but I don't
>expect I could do that without doing a full restore.

You would need to read the entire dump but you don't need to restore it -
it would be fairly easy to generate file hashes directly from the data in
the dump.

--=20
Peter Jeremy

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAlsLMFlfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzRVlQ/9Fj46rPpowmR6WKV2VKGKYO67ri1bUlC/8t8yiCh1Q2z7IoXQvuLs+HdF
jWFX0llROeA0oMzBrKbXhmjzYBrovdstvVkhWroBlPEYiXJg3R6uAXzqaaDyYlH/
Ba1LoYsxUHGkgBAHFuH/fc6CXAWG8/LPkegFRcs8VrwnlUJy0nJvnJYI64MSmqjT
Xhqq3vWKhkr9vvaiBf4tA2hHmyzs9k7FB2VwxIAFuILYpk4EgWDHHdxozJG1kxQF
CpUmjtMRzWKboqEDA8xXwxqTduEcbQHxwS0unSi2a42rUnn8tYo51hyR1MXVpUT1
9KOOMeRqMiGUP7jcjtRsIsSF91g1dpmzUdzd/XPv5te5+tux5IjG3iI7am3r6Vgd
p59eCAVvaBaytavHtWDJC++3L6lviwwqZiv01EnWb3CZzrVA0N0iIF3/LO5Obl+E
bLD8H9c7gcdSJqjNmVnt+C5dFwQmDwHs3vAPxTiQLTrDko/S89KDLr3MwkY0UxhL
9vKfhge4zF5imyC282WlUxCS9znfo5EmQP5tEu7hyNKTZQ6oTi3Oi6JWWMUmNlX6
RBPS28YdCD+Yeq00bX0TprfSWCg1aehSg3QGDD58o7j9LlzI8A0cd04l9TJ1sVV3
QlfoBYRDyrnWK4KtAEDKR8nv6LG2cSsY+z8kQu0AJ6b9ral9JLA=
=gMjA
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180527222529.GB96747>