I recently discovered restic and was so excited that I am switching all my scattered backup solutions with one centralized repo.
And here is my “problem”: I established a connection (SSH/SFTP) from my Raspberry Pi to my main server (Ubuntu). First backup works fine, I can execute restic-commands against the remote repo.
Afterwards I did a backup on the main system itself with sudo rights. Of course these files where saved with root ownership.
But now I can’t inspect the repo remotely for example with restic snapshots. I get a “Permission denied” with SSH_FX_PERMISSION_DENIED error. The problem is clear. But what is best practice in this constellation? Execute a recursive chown over repo after running the (sudo) backup on main server?
Thank you for your thoughts.