public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Gabriel Goller <g.goller@proxmox.com>
To: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
Cc: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup v2] reuse-datastore: avoid creating another default prune job
Date: Mon, 25 Nov 2024 17:57:46 +0100	[thread overview]
Message-ID: <jtibwjdxexym4icc55bn6iht33i4mdsq62spf4ikzgkxrha6oi@ef24zqkxqwya> (raw)
In-Reply-To: <1732545364.j7koj2vyxl.astroid@yuna.none>

On 25.11.2024 15:37, Fabian Grünbichler wrote:
>On November 25, 2024 11:10 am, Christian Ebner wrote:
>> On 11/25/24 09:59, Gabriel Goller wrote:
>>> If a datastore with a default prune job is removed, the prune job is
>>> preserverd as it is stored in /etc/proxmox-backup/prune.cfg. We also
>>> create a default prune job for every datastore – this means that when
>>> reusing a datastore that previously existed, you end up with duplicate
>>> prune jobs.
>>
>> Looking at this once more, I am not so sure anymore that this should
>> only check for the default prune job? Why not check if there is any
>> prune job configured at all for this datastore, and only if there is
>> none create the new default prune job?
>
>that would also work?
>
>- if no prune job exists for this store, create default one
>- if explicit prune job options where given, create that one
>- otherwise, don't add a prune job (no options given, and one exists
>  already for this store)

Yep, posted a v3!


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

  reply	other threads:[~2024-11-25 16:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-25  8:59 Gabriel Goller
2024-11-25 10:10 ` Christian Ebner
2024-11-25 14:37   ` Fabian Grünbichler
2024-11-25 16:57     ` Gabriel Goller [this message]
2024-11-25 17:10     ` Gabriel Goller
2024-11-26  8:09       ` Fabian Grünbichler
2024-11-26  9:51         ` Gabriel Goller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jtibwjdxexym4icc55bn6iht33i4mdsq62spf4ikzgkxrha6oi@ef24zqkxqwya \
    --to=g.goller@proxmox.com \
    --cc=f.gruenbichler@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal