I just tried a restore on a different Linux system than the one where the backup was created. I noticed afterwards that files silently became owned by the user under which I did the restore. In retrospect that makes sense because the user didn’t have permission to create files with arbitrary uid/gid combinations. It works when the restoring process has the capability to chown file ownership (
sudo setcap "cap_dac_read_search+ep cap_chown+ep" ~/restic).
But isn’t that something that restic should at least warn about?