Re: freebsd-update

From: Doug Hardie <bc979_at_lafn.org>
Date: Mon, 11 Dec 2023 20:12:28 UTC
> 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?

-- Doug