Hi,
Before i stumbled upon restic, i used to manage my nextcloud instance backups with rsync, and handling ACL files seperately, for correct permissions backup as rsync somehow didnt do the job. It used to work.
Now since restic has the ACL handling baked in, i was very excited to try this out.
So i did a backup using sudo on my raspberrypi.
sudo restic_0.11.0_linux_arm -r restic_test_backup/ --verbose backup nextcloud/
It worked, tested out a restore, and all the permission attributes were intact! Great.
Now i tried to use the same repo with a different linux m/c to backup my documents:
restic_0.11.0_linux_amd64 -r sftp:pi@192.168.1.105:/home/pi/restic_test_backup --verbose snapshots
This resulted in following errors:
enter password for repository:
repository 8b3d4cc9 opened successfully, password is correct
Load(<snapshot/ba9ab0bf3b>, 0, 0) returned error, retrying after 552.330144ms: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
Load(<snapshot/ba9ab0bf3b>, 0, 0) returned error, retrying after 1.080381816s: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
Load(<snapshot/ba9ab0bf3b>, 0, 0) returned error, retrying after 1.31013006s: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
Load(<snapshot/ba9ab0bf3b>, 0, 0) returned error, retrying after 1.582392691s: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
Load(<snapshot/ba9ab0bf3b>, 0, 0) returned error, retrying after 2.340488664s: sftp: “Permission denied” (SSH_FX_PERMISSION_DENIED)
This could be because, the original repo had some of the index files created with the root user on my source repo.
But to my surprise , even if i issue the sftp command using sudo, i was not able to list the snapshots:
**sudo** restic_0.11.0_linux_amd64 -r sftp:pi@192.168.1.105:/home/pi/restic_test_backup --verbose snapshots
i get the same SSH_FX_PERMISSION_DENIED
errors.
Am i missing something? Cant i use my original repo, that unfortunately had backups done by root privileges from some other remote machine through sftp?
Thanks.