From owner-freebsd-hackers@freebsd.org Sun May 27 22:25:47 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45EEAEEECED for ; Sun, 27 May 2018 22:25:47 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89F3B714C3 for ; Sun, 27 May 2018 22:25:46 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id w4RMPZIJ099577 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 May 2018 08:25:42 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id w4RMPUKs081076 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 May 2018 08:25:30 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id w4RMPULg081075; Mon, 28 May 2018 08:25:30 +1000 (AEST) (envelope-from peter) Date: Mon, 28 May 2018 08:25:30 +1000 From: Peter Jeremy To: George Mitchell Cc: FreeBSD Hackers Subject: Re: Indexing a dump file Message-ID: <20180527222529.GB96747@server.rulingia.com> References: <182832e1-4968-4a83-02a3-84cfa9def675@m5p.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <182832e1-4968-4a83-02a3-84cfa9def675@m5p.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2018 22:25:47 -0000 --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 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--