From nobody Mon Dec 11 22:52:54 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Spxpy1Ctvz54CrH for ; Mon, 11 Dec 2023 22:52:58 +0000 (UTC) (envelope-from carlj@peak.org) Received: from mail.nrtc.syn-alias.com (mail.nrtc.syn-alias.com [129.213.214.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Spxpx2VF4z3Dxf for ; Mon, 11 Dec 2023 22:52:57 +0000 (UTC) (envelope-from carlj@peak.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=peak.org header.s=synacor-nrtc header.b=Gy7B4kMa; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 129.213.214.220 as permitted sender) smtp.mailfrom=carlj@peak.org; dmarc=pass (policy=none) header.from=peak.org DKIM-Signature: v=1; a=rsa-sha1; d=peak.org; s=synacor-nrtc; c=relaxed/simple; q=dns/txt; i=@peak.org; t=1702335176; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=VU3y2jOYuSunTp+wr3DkToTYGr8=; b=Gy7B4kMa1K7tUbUixE68YCRgd+VmBokvgB6/w9GPJaB23v9oWqLTMPe3CL9mYLB/ gXd5YTEjc30Tp0jH0L3Dca4ytY4n6sK5jZQAqK9ugd4NqALk1yid9srvkrbO77Af sim7pIeniID3x3x3Wcm+Y1H1av26HBcS5GOTZFHlsLbZ36atTbEBR29Ua53TiJRl avdOk/YtrQjqFOh37rHXfz+rXVaBCY0SG3ycBBxfbyax3FedBCqPAF3gZAZ1Em/w GXb0/aBnXKXbQUFIHSvc6dRFsc67ZjnZPut6XygOj+qz4UYcOBw5zOwX8wq0Wmk/ eku4JNLIzdpNXnzlSNad9A==; X-Authed-Username: Y2FybGpAcGVhay5vcmc= Received: from [199.58.99.88] ([199.58.99.88:31337] helo=bay.localnet) by mail.peak.org (envelope-from ) (ecelerity 4.4.1.20033 r(msys-ecelerity:tags/4.4.1.0^0)) with ESMTPA id 8C/AE-04489-7C297756; Mon, 11 Dec 2023 17:52:56 -0500 Received: from carlj by bay.localnet with local (Exim 4.96.2 (FreeBSD)) (envelope-from ) id 1rCp8w-0001uV-2A for freebsd-questions@freebsd.org; Mon, 11 Dec 2023 14:52:54 -0800 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: freebsd-update In-Reply-To: (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> Date: Mon, 11 Dec 2023 14:52:54 -0800 Message-ID: <865y14xsft.fsf@bay.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Vade-Verdict: clean X-Vade-Analysis-1: gggruggvucftvghtrhhoucdtuddrgedvkedrudelfedgtdefucetufdoteggodetrfdotffvucfrrhho X-Vade-Analysis-2: fhhilhgvmecuufgjpfetvefqtfdppfftvfevpdfgpfggqdfptffvvedpqfgfvfenuceurghilhhouhht X-Vade-Analysis-3: mecufedtudenucenucfjughrpefhvffujghffffkfgggtgesthdttddttdertdenucfhrhhomhepvegr X-Vade-Analysis-4: rhhlucflohhhnhhsohhnuceotggrrhhljhesphgvrghkrdhorhhgqeenucggtffrrghtthgvrhhnpedt X-Vade-Analysis-5: hffgudeffeffvdehgfektdehuedukedtlefggfdvtedvgeefudefieefvdeufeenucfkphepudelledr X-Vade-Analysis-6: heekrdelledrkeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelledr X-Vade-Analysis-7: heekrdelledrkeekpdhhvghlohepsggrhidrlhhotggrlhhnvghtpdhmrghilhhfrhhomheptggrrhhl X-Vade-Analysis-8: jhesphgvrghkrdhorhhgpdhrtghpthhtohepfhhrvggvsghsugdqqhhuvghsthhiohhnshesfhhrvggv X-Vade-Analysis-9: sghsugdrohhrghdpmhhtrghhohhsthepshhmthhptddvrdhnrhhttgdrvghmrghilhdqrghshhdurdhs X-Vade-Analysis-10: hihntgdrlhgrnhdpnhgspghrtghpthhtohepuddpihhspghnrgepthhruhgvpdgruhhthhgpuhhsvghr X-Vade-Analysis-11: pegtrghrlhhjsehpvggrkhdrohhrgh X-Vade-Client: NRTC X-Spamd-Result: default: False [-5.20 / 15.00]; DWL_DNSWL_LOW(-1.00)[peak.org:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; R_SPF_ALLOW(-0.20)[+ip4:129.213.214.220]; RWL_MAILSPIKE_VERYGOOD(-0.20)[129.213.214.220:from]; R_DKIM_ALLOW(-0.20)[peak.org:s=synacor-nrtc]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31898, ipnet:129.213.208.0/21, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[129.213.214.220:from]; DKIM_TRACE(0.00)[peak.org:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Spxpx2VF4z3Dxf X-Spamd-Bar: ----- Doug Hardie writes: >> On Dec 11, 2023, at 08:52, Carl Johnson wrote: >> >> Doug Hardie writes: >> >>>> On Dec 11, 2023, at 01:24, Polytropon 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