I messed up my PVE that PBS was running under, so I created datastores on my USB drive and synced the original datastores to that before reinstalling PVE, and then restoring PBS from a local snapshot backup.
I couldn't work out how to sync back from the USB datastores to the original location, so I just did a cp -RP job which should have preserved the ownership details, but the files on the USB were owned by backup:backup and after copying them back to the original location they were owned by root:root. So I did a chown -R backup:backup on them, but when i went to run the backup jobs to update the backups it was failing on the grounds that they were owned by root@pam rather than the user set in my backup jobs - pbsbackup@pbs ,
I fixed it by deleting most of the existing backups and running the job to create new ones, but for future reference, was there anything else I could have done to change the ownership backup to pbsbackup@pbs?
I couldn't work out how to sync back from the USB datastores to the original location, so I just did a cp -RP job which should have preserved the ownership details, but the files on the USB were owned by backup:backup and after copying them back to the original location they were owned by root:root. So I did a chown -R backup:backup on them, but when i went to run the backup jobs to update the backups it was failing on the grounds that they were owned by root@pam rather than the user set in my backup jobs - pbsbackup@pbs ,
I fixed it by deleting most of the existing backups and running the job to create new ones, but for future reference, was there anything else I could have done to change the ownership backup to pbsbackup@pbs?