From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C941C67388 for ; Wed, 26 Aug 2020 08:15:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BD1FBD007 for ; Wed, 26 Aug 2020 08:15:20 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id A4787CFE7 for ; Wed, 26 Aug 2020 08:15:19 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 6B7A04489A for ; Wed, 26 Aug 2020 08:15:19 +0200 (CEST) To: Dietmar Maurer , Proxmox Backup Server development discussion References: <20200825153028.22466-1-t.lamprecht@proxmox.com> <156308177.80.1598416207112@webmail.proxmox.com> From: Thomas Lamprecht Message-ID: <8ac6a479-8a21-3030-887c-1e4a0ac40894@proxmox.com> Date: Wed, 26 Aug 2020 08:15:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Thunderbird/80.0 MIME-Version: 1.0 In-Reply-To: <156308177.80.1598416207112@webmail.proxmox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.220 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -2.602 Looks like a legit reply (A) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pbs-devel] [PATCH backup 1/2] save last verify result in snapshot manifest X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 06:15:20 -0000 On 26.08.20 06:30, Dietmar Maurer wrote: > >> On 08/25/2020 5:30 PM Thomas Lamprecht wrote: >> >> >> Save the state ("ok" or "failed") and the UPID of the respective >> verify task. With this we can easily allow to open the relevant task >> log and show when the last verify happened. >> >> As we already load the manifest when listing the snapshots, just add >> it there directly. >> >> We need to make the verify API call protected to be able to save the manifest. > > Why? IMHO this should not be necessary, because backups are written by the 'backup' user. > You are right. I had some backups made during a debugging session a month ago where I mistakenly ran the proxy as root - so those had wrong file owners, from that I made a wrong assumption..