From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 91A3A1FF144 for ; Tue, 24 Mar 2026 07:43:33 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 83D63460C; Tue, 24 Mar 2026 07:43:34 +0100 (CET) Message-ID: <7addffd6-592b-4e66-8d9a-9eae4b627a89@proxmox.com> Date: Tue, 24 Mar 2026 07:42:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Question regarding sync jobs To: Fabrizio Cuseo , pve-user References: <1303708809.1156748.1774263025991.JavaMail.zimbra@zimbra.panservice.it> Content-Language: en-US From: Hannes Laimer In-Reply-To: <1303708809.1156748.1774263025991.JavaMail.zimbra@zimbra.panservice.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1774334527985 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.080 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: Q2AVEJ7US7E5IYMSTE5JFYJZS7MFA7PS X-Message-ID-Hash: Q2AVEJ7US7E5IYMSTE5JFYJZS7MFA7PS X-MailFrom: h.laimer@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE user list List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hey Fabrizio, On 2026-03-23 12:00, Fabrizio Cuseo wrote: > Hello. > I have searched with no results, so I ask if is possibile: > > - several PBS servers with backups for different PVE clusters > - remote PBS server that handles USB drives for remote ad offline backup sync > - several sync jobs for each USB drive repository; this is needed because a single USB drive contains different remote PBS sources. > > If I flag "execute on mount", and "unmount after synced" on a single script, no problems. But If have more than one sync job, I would like to have a sequence, so: > - first job, "executed on mount" > - second job, "executed after first" > - third job, "executed after second" - "unmount at end". > > Is this possible or scheduled for a next release ? this is what should be happening, if you have multiple jobs marked with "run on mount" they should run sequentially(ordered by job-id)[1], and if any of the jobs has "unmount after" set the datastore will be unmounted after the last one finishes. If this is not happening, it's a bug :) > > Thanks, Fabrizio > > > ~ Hannes [1] https://git.proxmox.com/?p=proxmox-backup.git;a=blob;f=src/api2/admin/datastore.rs;h=cca34055353273585327dcd38a2b5e5648ceb811;hb=refs/heads/master#l2535