[pbs-devel] Proxmox Backup Server 2.2 available

Thomas Lamprecht t.lamprecht at proxmox.com
Fri May 20 07:43:45 CEST 2022


On 19/05/2022 12:28, David Lawley wrote:
> Off hand going to guess moving backups to a namespace not an easy task?  Or maybe there is a way?

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
https://forum.proxmox.com/threads/proxmox-backup-server-2-2-available.109724/page-2#post-471949

cheers,
Thomas





More information about the pbs-devel mailing list