I’m trying to specify the ssh key I’ve created for the restic user account, mentioned here: Examples — restic 0.11.0 documentation
The problem I think I’m running into is that I don’t know how to tell restic to use the restic user’s key when connecting. I’ve tried running as the user with this command and it fails
sudo -u restic /home/restic/bin/restic -r sftp -o "IdentityFile=/home/restic/.ssh/restic":restic@192.168.0.172:/mnt/data/backup/repos/clowncar --verbose --verbose backup --exclude-file=restic_exclusions --files-from=restic_inclusions
the -o flag is invalid in this case but I left it there to give better context. I am able to get this to work using my account, just not the restic account that I want to use for the unattended backups.
Can anyone tell me how to do this? Thank you.