I have a second Proxmox Backup Server setup that I only boot occasionally to manually do a pull sync from the first server. For this I created a sync job in the GUI that works just fine. Instead of going into the GUI and trigger the sync job manually I would like to do the sync from CLI so I can incorporate it in a script.
From this forum I have learned that there is no way to trigger a configured sync job from the CLI, but issuing a pull command is possible:
This however fails:
The datastores/backups in both servers are in root namespace. In the GUI of both servers I have configured a user backup@pbs with the DatastoreBackup Role which is used for the remote connection from server2 to server1. I suspect this somehow needs to be incorporated in the CLI command, but from the man pages it is not clear how?
From this forum I have learned that there is no way to trigger a configured sync job from the CLI, but issuing a pull command is possible:
Code:
proxmox-backup-manager pull pbs-server1 pbs-ds-server1 pbs-ds-server2 --remove-vanished
This however fails:
Code:
sync group ct/100 failed - owner check failed (root@pam != backup@pbs)
The datastores/backups in both servers are in root namespace. In the GUI of both servers I have configured a user backup@pbs with the DatastoreBackup Role which is used for the remote connection from server2 to server1. I suspect this somehow needs to be incorporated in the CLI command, but from the man pages it is not clear how?