From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <davel@upilab.com>
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 1B28E71C63
 for <pbs-devel@lists.proxmox.com>; Fri, 20 May 2022 12:05:04 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id F0F53194E7
 for <pbs-devel@lists.proxmox.com>; Fri, 20 May 2022 12:04:33 +0200 (CEST)
Received: from mail.upilab.com (mail.upilab.com [199.38.221.195])
 by firstgate.proxmox.com (Proxmox) with ESMTP id 1D792194DA
 for <pbs-devel@lists.proxmox.com>; Fri, 20 May 2022 12:04:31 +0200 (CEST)
Received: from [10.10.1.129] (UnknownHost) by mail.upilab.com with SMTP;
 Fri, 20 May 2022 06:04:22 -0400
Message-ID: <4a2d02a4-559a-a275-7843-803de9fa58ce@upilab.com>
Date: Fri, 20 May 2022 06:04:22 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.9.0
Content-Language: en-US
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
 Proxmox Backup Server development discussion <pbs-devel@lists.proxmox.com>
References: <4934e0fe-26da-048e-973c-93c60ba3083b@proxmox.com>
 <5dc099cb-37ef-7eca-ff38-1502ec9ff8fa@upilab.com>
 <d0c334e2-335e-327f-f08d-f7cc2aa475a0@proxmox.com>
From: David Lawley <davel@upilab.com>
In-Reply-To: <d0c334e2-335e-327f-f08d-f7cc2aa475a0@proxmox.com>
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.321 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 HTML_MESSAGE            0.001 HTML included in message
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 MIME_HTML_ONLY            0.1 Message only has text/html MIME parts
 NICE_REPLY_A           -0.717 Looks like a legit reply (A)
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
 T_SCC_BODY_TEXT_LINE    -0.01 -
 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more
 information. [proxmox.com]
Subject: Re: [pbs-devel] Proxmox Backup Server 2.2 available
X-BeenThere: pbs-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox Backup Server development discussion
 <pbs-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pbs-devel/>
List-Post: <mailto:pbs-devel@lists.proxmox.com>
List-Help: <mailto:pbs-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Fri, 20 May 2022 10:05:04 -0000

<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3D=
UTF-8">
  </head>
  <body>
    <p>thanks<br>
    </p>
    <div class=3D"moz-cite-prefix">On 5/20/2022 1:43 AM, Thomas Lampre=
cht
      wrote:<br>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:d0c334e2-335e-327f-f08d-f7cc2aa475a0@proxmox.com">
      <pre class=3D"moz-quote-pre" wrap=3D"">On 19/05/2022 12:28, Davi=
d Lawley wrote:
</pre>
      <blockquote type=3D"cite">
        <pre class=3D"moz-quote-pre" wrap=3D"">Off hand going to guess=
 moving backups to a namespace not an easy task?=C2=A0 Or maybe there =
is a way?
</pre>
      </blockquote>
      <pre class=3D"moz-quote-pre" wrap=3D"">
As long as the backups stay in the same datastore it's relatively easy=
,
as that's just moving around folders. For cross datastore you need to =
use
sync-to-local-remote for now, as otherwise data chunk can be missing.

You could do the following on the CLI, note that it'd be best to enabl=
e
the new offline maintenance mode to avoid interfering with the PBS dae=
mons,
as this example ignores locking completely.

# change pwd to datastore root dir, e.g.:
cd /mnt/datastore
# create the namespace "foo" manually (or via gui, which doesn't needs=
 the ns/ prefix)
mkdir -p ns/foo

# ensure folder have correct owners to avoid issues on prune/delete
chown -R backup:backup ns

# move all groups of type vm, ct and host
mv vm ct host ns/foo

# or, move just a single group:
# first create the backup group type in the NS, if not already presen
mkdir ns/foo/vm
chown -R backup:backup ns/foo/vm
# move the group
mv vm/101 ns/foo/vm/

# or a deeper namespace "foo/bar"
mkdir -p ns/foo/ns/bar
chown -R backup:backup ns

Adapted from my post in
<a class=3D"moz-txt-link-freetext" href=3D"https://forum.proxmox.com/t=
hreads/proxmox-backup-server-2-2-available.109724/page-2#post-471949">=
https://forum.proxmox.com/threads/proxmox-backup-server-2-2-available.=
109724/page-2#post-471949</a>

cheers,
Thomas


</pre>
    </blockquote>
    <pre class=3D"moz-signature" cols=3D"72">--=20


A quick word on style. I have none.
I have casual way of talking and writing, and a strange sense of humou=
r.=20
I also tend to use random pop-culture references a lot, but often in w=
ays that make no sense.=20
If this is a problem you are entitled to a refund of the money you pai=
d to me to write this... ;)</pre>
  </body>
</html>