Is anybody out there backing up rsnapshot as a local backup user? There
used to be a posting for this, but I can't find it anymore. I've been
trying to make sense out of the instructions at:
http://blog.innerewut.de/2005/06/03/follow-up-on-remote-filesystem-snapshots-with-rsnapshot
but still having some permissions issues.
I've got the ssh key set up, and can run the rsync command manually to
back up files from the remote system. But it still complains about
permissions when trying to move files on the local rsnapshot_root
location. So I try to run rsnapshot as sudo, and it does gain access to
all the local files, but won't connect correctly to
backupuser < at > remoteserver - it always prompts for password even though
I've done these things:
- configured ssh key for the backupuser on the remote system
- confirmed in remote server's logs that it is trying and failing to
connect as backupuser, and not as root
- created the rsync-wrapper that calls rsync as sudo (rather than rename
the system's rsync to rsync_real as suggested)
Here's the rsync syntax that rsnapshot is using:
/usr/bin/rsync -aevx --delete --numeric-ids --relative --delete-excluded \
--rsync-path=/usr/bin/rsync-wrapper --rsh=/usr/bin/ssh \
backupuser < at > remoteserver/home/ /.snapshots/hourly.0/servername/
Error messages:
-----------------------------------------------------------
running as the backupuser:
ERROR: Warning! Recursion error in
native_cp_al("/.snapshots/hourly.0/localhost/home/...",
"/.snapshots/hourly.1/localhost/home/...")
ERROR: Could not open "/.snapshots/hourly.0/localhost/home/...". Do you
have adequate permissions?
WARNING: /usr/bin/rsnapshot -VV hourly: completed, but with some
warnings
when running as sudo:
Could not lchown() symlink "/.snapshots/hourly.1..."
Prompts for password when it attempts to connect to remote system. Don't
want to have to enter one.
-----------------------------------------------------------
Thanks for any good suggestions on this.
--
Mark Sallee
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
