Hy everybody,
there is an bit "dangerous" way to do this over the console/ssh
Estimation:
VM with ID: 100, 101, 102
BackupSpace: myBackup
OldUser: proxBack1@pam
NewUser: proxBack2@pbs
The Backups for those VMs are stored in the following directory:
/mnt/datastorage/myBackup/vm/100
/mnt/datastorage/myBackup/vm/101
/mnt/datastorage/myBackup/vm/102
ct are in
/mnt/datastorage/myBackup/ct/{id}
server
/mnt/datastorage/myBackup/server
additional namespaces and there ct/vm/servers
/mnt/datastorage/myBackup/ns
Case 1: Change User only for VM100
01. cd /mnt/datastorage/myBackup/vm/100
02. sed -i.bak 's/proxBack1@pam/proxBack2@pbs/g' owner
Case 2: Change User in all VM's
01. cd /mnt/datastorage/myBackup/vm
02. find . -name "owner" -exec sed -i.bak 's/proxBack1@pam/proxBack2@pbs/g' {} \;
Case 3: Change User in all Backups
01. cd /mnt/datastorage/myBackup
02. find . -name "owner" -exec sed -i.bak 's/proxBack1@pam/proxBack2@pbs/g' {} \;
The owner of a Backup of a VM/CT/Server is written plain in the "owner" file in
each VM/CT/Server-Backup-Directory
sed -i.bak 's/proxBack1@pam/proxBack2@pbs/g' owner .. replaces the string "proxBack1@pam" with "proxBack2@pbs",
the parameter -i.bak .. automatically creates a backup of the "owner"-File called: owner.bak (for security reason!)
best regards
PP