Date: Mon, 11 Dec 2023 14:52:54 -0800 From: Carl Johnson <carlj@peak.org> To: freebsd-questions@freebsd.org Subject: Re: freebsd-update Message-ID: <865y14xsft.fsf@bay.localnet> In-Reply-To: <D7579ED7-9B44-4EF4-A11B-5FD5348BD46C@sermon-archive.info> (Doug Hardie's message of "Mon, 11 Dec 2023 12:12:28 -0800") References: <6D99F68F-1B96-4DDC-AFDF-A245EFBE8F7A@sermon-archive.info> <20231211102415.25366753.freebsd@edvax.de> <52B31BB7-A108-4716-AFB8-F03C76029440@sermon-archive.info> <86a5qgy93y.fsf@bay.localnet> <D7579ED7-9B44-4EF4-A11B-5FD5348BD46C@sermon-archive.info>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Hardie <bc979@lafn.org> writes: >> On Dec 11, 2023, at 08:52, Carl Johnson <carlj@peak.org> wrote: >> >> Doug Hardie <bc979@lafn.org> writes: >> >>>> On Dec 11, 2023, at 01:24, Polytropon <freebsd@edvax.de> wrote: >>>> >>>> On Sun, 10 Dec 2023 18:41:11 -0800, Doug Hardie wrote: >>>>> I have upgraded using freebsd-update a number of time on one system. >>>>> There are two files I would like to retrieve from the previous >>>>> incarnation. I don't want to revert them, just put them somewhere >>>>> where I can retrieve their contents. Is this possible? >>>>> /var/db/freebsd-update is intact from several years and updates ago. >>>> >>>> There should be a backup of every file freebsd-update has modified. >>>> It is located in /var/tmp, if I remember correctly. >>>> >>>> What files in particular are you searching for? >>> >>> I didn't find anything in /var/tmp except for the vi recovery files. Looking for sshd_config and ssh_config. >>> >>> -- Doug >> >> It is in /var/db/freebsd-update, not /var/tmp. > > I found /var/db/freebsd-update/files which has files from 2017 and on > till the last update. However, the names are encoded in some way - > e.g., > > 092a2690192245310b6c7db95cde1ace858b83380538e7db34473a1d22451fc1.gz > > I probably need to clean up that directory, but how do I find the file name from the above? I haven't actually done anything with that, but look in the install.* directories. The *-rollback symbolic link will point to the latest of those. Each of those directories contains a INDEX-NEW and INDEX-OLD file. Those files contain a list of file names and information about the files, including the first part of that string (before the .gz) that points to the files in the files/ subdirectory. I imagine freebsd-update uses that information to rollback before a change, but I don't know of anything else that can use that information. I don't know anything more than that, but hopefully you can figure out what you need from that. -- Carl Johnson carlj@peak.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?865y14xsft.fsf>