I'm trying to set up remote backups with rsnapshot from my home server. I want my server to connect into my laptop and take backups over SSH.Everything is set up correctly and I can connect from my server to the laptop perfectly.
The problem is I'm getting a permission error when I run sudo rsnapshot -v hourly
(from the server):
...
rsync: opendir "/foo/bar" failed: Permission denied (13)
...
I've created a separate backup
user on my laptop and I'm connecting over ssh with this user. This is my ~/.ssh/config
that rsnapshot is making use of:
Host macbookpro
HostName macbookpro
PreferredAuthentications publickey
User backup
Identity File ~/.ssh/keys/macbookpro.id_rsa
I've also added the following to my sudoers file on my laptop which should allow rsync to run as root when called remotely by rsnapshot:
backup ALL=(root) NOPASSWD: /usr/bin/rsync
yet whenever I run rsnapshot I continue to get permission errors. Does anyone see what's wrong?