Re: freebsd-update
- In reply to: Doug Hardie : "Re: freebsd-update"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Dec 2023 22:52:54 UTC
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