Skip to content

Support Namespaces #4

@Jay2k1

Description

@Jay2k1

Hi,

you can create namespaces on PBS, so you can easily use one PBS for multiple PVE servers/clusters and separate their backups from each other. If all your backups are organized in namespaces, the current check doesn't see a single backup because it only looks at the root namespace:

root@pbs:/# proxmox-backup-client list --repository "$repo" --output-format json-pretty
[]
root@pbs:/# proxmox-backup-client list --repository "$repo" --output-format json-pretty --ns cust1 | head 
[
  {
    "backup-count": 27,
    "backup-id": "155",
    "backup-type": "vm",
    "files": [
      "qemu-server.conf.blob",
      "index.json.blob",
      "client.log.blob",
...

You'd have to iterate namespace dependent commands over all available namespaces using the --ns switch. You can get a list of all namespaces like so:

proxmox-backup-client namespace list --repository "$PBS_REPO:$name" --output-format json-pretty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions