Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Namespaces #4

Open
Jay2k1 opened this issue Mar 13, 2023 · 2 comments
Open

Support Namespaces #4

Jay2k1 opened this issue Mar 13, 2023 · 2 comments

Comments

@Jay2k1
Copy link

Jay2k1 commented Mar 13, 2023

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
@marcogabriel
Copy link
Member

Thanks for mentioning this. I assumed we're already checking namespaces. At least we use namespaces already.

@nedjitef is this the latest version?

@nedjitef
Copy link
Collaborator

nedjitef commented Apr 25, 2023

No, we don't monitor namespaces in the current check version but we should change that.

In the beginning, when PBS didn't have namespaces, we started using multiple data stores for these purposes.
Since this works quite well, we didn't need to change that yet. We use them, but not that much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants