<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>thanks<br>
    </p>
    <div class="moz-cite-prefix">On 5/20/2022 1:43 AM, Thomas Lamprecht
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d0c334e2-335e-327f-f08d-f7cc2aa475a0@proxmox.com">
      <pre class="moz-quote-pre" wrap="">On 19/05/2022 12:28, David Lawley wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Off hand going to guess moving backups to a namespace not an easy task?  Or maybe there is a way?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
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 enable
the new offline maintenance mode to avoid interfering with the PBS daemons,
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="moz-txt-link-freetext" href="https://forum.proxmox.com/threads/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="moz-signature" cols="72">-- 


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