Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Indexing a dump file

0 views
Skip to first unread message

George Mitchell

unread,
May 27, 2018, 12:48:29 PM5/27/18
to
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

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.

signature.asc

Rodney W. Grimes

unread,
May 27, 2018, 2:45:51 PM5/27/18
to
A hacking of restore(8) sources would not be difficult to add
some of this. Though you are gong to need to build the symtab
as if you was doing a restore, you would not need to write the
data to disk.


--
Rod Grimes rgr...@freebsd.org
_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Peter Jeremy

unread,
May 27, 2018, 6:29:33 PM5/27/18
to
On 2018-May-27 12:36:55 -0400, George Mitchell <george+...@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
signature.asc
0 new messages