add pbs to pdm by cli howto

kohly

Renowned Member
Dec 24, 2011
57
13
73
hi there,

unfortunately i am unable to find the command to add a pbs to the pdm as recently announced in the changelog of pdm.
(Enable Proxmox Backup Server Integration, CLI only for now.)

does someone have a hint for me, please?

br
kohly
 
hi there,

unfortunately i am unable to find the command to add a pbs to the pdm as recently announced in the changelog of pdm.
(Enable Proxmox Backup Server Integration, CLI only for now.)

does someone have a hint for me, please?

br
kohly
Patience, everything will work out...
 
very intersting point:
the roadmap says:

...

Proxmox Datacenter Manager 0.9 BETA
...

Changelog Overview
...

Remotes Management​


  • Enable Proxmox Backup Server Integration, CLI only for now.

:p

my question was: where do i find anything specific related to this feature announced in the changelog for 0.9 beta
 
very intersting point:
the roadmap says:

...

Proxmox Datacenter Manager 0.9 BETA​

...​

Changelog Overview​

...​

Remotes Management​


  • Enable Proxmox Backup Server Integration, CLI only for now.

:p

my question was: where do i find anything specific related to this feature announced in the changelog for 0.9 beta
I’d love to explore this feature as well! :)

By the way, if you’ve already integrated Proxmox VE (PVE) servers into PDM, you’ll notice their backup jobs appear as “vzdump” tasks in the PDM interface. This integration is already super useful for managing backups.
 
Hi, i'm playing with /etc/proxmox-datacenter-manager/remotes.cfg.
Inside the file you can try to configure the remote pbs node using tokens to authenticate...
Hope to succeed
giuliano
 
You can indeed use the CLI to add. The relevant options are described here: proxmox-datacenter-manager-admin help remote add
You need to use the --type pbs parameter and manually create an API token on the PBS and give that admin permissions.

Adding initial UI integration for PBS is one of the next features that is being worked on.
 
You can indeed use the CLI to add. The relevant options are described here: proxmox-datacenter-manager-admin help remote add
You need to use the --type pbs parameter and manually create an API token on the PBS and give that admin permissions.

Adding initial UI integration for PBS is one of the next features that is being worked on.
may you give me please an example for the parameters
--authid
--id
--nodes
--token a1b2c3e4 -a1b2-c3e4-a1b2-aa11bb22cc33 (the token with admin permissions created on the pbs)
--type pbs

this would be very helpfull ;)
 
i used as:
--authid the string root@pam!pdm (where pdm is the name of the token i created on the pbs server
--id the name of the PBS server, it is the one that will be displayed on the PDM consolle
--nodes the IP address of the PBS server followed by 8007
--token the token i created on the PBS
--type pbs
Following is the command i issued without error on the PDM shell:

proxmox-datacenter-manager-admin remote add --authid 'root@pam!pdm' --id PBS-GROSSE --nodes 192.168.1.6:8007 --token e79d5e4b-7ec6-4ceb-82b4-b1f0bdefedf7 --type pbs

As stated i had no errors and in the remotes.cfg file i found this:
cat /etc/proxmox-datacenter-manager/remotes.cfg
...
...
pbs: PBS-GROSSE
authid root@pam!pdm
nodes 192.168.1.6:8007
token e79d5e4b-7ec6-4ceb-82b4-b1f0bdefedf7

Apparently everythings is ok,
Even in the dashboard i found my PBS but there is no data at all in the dashboard interface and i get a error 400 connect error.

My question is about the fingerprint that is present for the pve type and missing on the pbs.
Should i add it?
Giuliano
 
  • Like
Reactions: kohly
I added the fingerprint (derived form the pbs certificate) after the nodes statement in the remotes.cfg file. It become :
pbs: pbs
authid root@pam!pdm
nodes 192.168.1.6:8007,fingerprint=27:02:7c:87:b0:e8:2a:c5:f1:7f:a2:3a:12:3c:6a:3b:4d:4b:57:ce:8f:ed:c3:a7:da:4a:6c:70:3f:8c:22:f8
token e79d5e4b-7ec6-4ceb-82b4-b1f0bdefedf7

Finally remember to give the right permission to the api token created in the pbs . i gave "admin" role and now it works.
I can see from the dashboard of the pdm the list of the backups stored in the datastore.
Thanks
Giuliano
 
  • Like
Reactions: kohly and devaux
I added the fingerprint (derived form the pbs certificate) after the nodes statement in the remotes.cfg file. It become :
pbs: pbs
authid root@pam!pdm
nodes 192.168.1.6:8007,fingerprint=27:02:7c:87:b0:e8:2a:c5:f1:7f:a2:3a:12:3c:6a:3b:4d:4b:57:ce:8f:ed:c3:a7:da:4a:6c:70:3f:8c:22:f8
token e79d5e4b-7ec6-4ceb-82b4-b1f0bdefedf7

Finally remember to give the right permission to the api token created in the pbs . i gave "admin" role and now it works.
I can see from the dashboard of the pdm the list of the backups stored in the datastore.
Thanks
Giuliano
Nice, thanks.
Worked for me, too. But i can't see any backups in the datastores. Even with admin permission on /
But i guess this is because i don't have any backups in the root of each datastore, but in Namespaces.
 
I hope that in future release it'll be possible to have a view even on various pbs's tasks (purge, gc, sync, etc) and on performances indicator (cpu, memory, disks).
Great work.
many thanks
giuliano
 
  • Like
Reactions: kohly
I added the fingerprint (derived form the pbs certificate) after the nodes statement in the remotes.cfg file. It become :
pbs: pbs
authid root@pam!pdm
nodes 192.168.1.6:8007,fingerprint=27:02:7c:87:b0:e8:2a:c5:f1:7f:a2:3a:12:3c:6a:3b:4d:4b:57:ce:8f:ed:c3:a7:da:4a:6c:70:3f:8c:22:f8
token e79d5e4b-7ec6-4ceb-82b4-b1f0bdefedf7

Finally remember to give the right permission to the api token created in the pbs . i gave "admin" role and now it works.
I can see from the dashboard of the pdm the list of the backups stored in the datastore.
Thanks
Giuliano
with the command line you provided in the post before and this little hint it works, many thanks!
 
Nice, thanks.
Worked for me, too. But i can't see any backups in the datastores. Even with admin permission on /
But i guess this is because i don't have any backups in the root of each datastore, but in Namespaces.
I was following this discussion to add my pbs on pdm, and I stopped when it couldn't access the namespaces (all via CLI). Then I remembered that I had a old version of the BETA, so I updated it (pdm-test repo) and boom, now you can add a pbs using the webGUI (idk since when) in the same way you add a VE. So I wasted 1 hour manually creating tokens, permission etc etc...