Change Owner all vm's in repository

sander93

Renowned Member
Sep 30, 2014
57
2
73
Hello,

I used the root user for back-up, but i wan't to change it to a seperate user with the role DatastoreBackup.

i found you can change the owner with:
proxmox-backup-client change-owner vm/id new-user --repository localhost:datastore

But is there some way to change all back-up onwers at once? i have more then 170 vm's where i need to change the owner.

i tried vm/* but this isn't working.

Kind regards,

Sander
 
not via the API/GUI/CLI. the owner is stored in a file called 'owner' inside the backup group though, so.. ;)
 
yes, either by scripting the client or by scripting modifications to those files (the latter is obviously more dangerous if you get it wrong)