Indexing a dump file

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Sun May 27 18:42:24 UTC 2018


> 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.

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                                                 rgrimes at freebsd.org


More information about the freebsd-hackers mailing list