Indexing a dump file

Peter Jeremy peter at rulingia.com
Sun May 27 22:25:47 UTC 2018


On 2018-May-27 12:36:55 -0400, George Mitchell <george+freebsd at m5p.com> wrote:
>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.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20180528/83d3038f/attachment.sig>


More information about the freebsd-hackers mailing list