Click to See Complete Forum and Search --> : rsync login permissions


Crooked
03-09-2001, 04:36 PM
Hello,

I've been trying to get rsync to work between 2 machines but haven't been having much success. I set up ServerB as a rsync server with an anonymous login directory but I would like it to use permissions set by logins. So how the h#$l do I send the login?

Currently, I'm using this command:
rsync rsync://ServerB.com:/publicdir/. /path/to/local/dir/

This is the only way I have gotten anything to work. If I try to use rsync over ssh, it keeps giving me errors about unknown machines. I would prefer to use the above command rather than ssh, as I will be behind a firewall and using it internally only for backup purposes.

Any help would be much appreciated. I've looked over all the rsync documentation, but it seems rather cryptic to me or maybe I'm just dumb. If there is a better way to do this, let me know!

TIA,
Crooked

Crooked
03-12-2001, 04:03 PM
Well, apparently no one could point me in the right direction, but a friend of mine told me about this page:
http://www.freebsddiary.org/rsync.html
Although, alot of the page is taken from the man files and tutorials, it seemed a little easier to understand for me.

Ultimately, I used this command:
rsync -e ssh -avz remote.server.com::test /home/PathToSaveTo/

This downloaded the files from the remote server to the path on the local machine that I specified.

rsync -e ssh sends the rsync command through ssh
-avz are rsync options for a=archive mode(preserves permissions and such) v=verbose and z=compress.

test was the remote rsync directory set in the rsyncd.conf file which was actually /home/mydir/.

Maybe this will help someone else out there that was having problems like me, or atleast point them in the right direction

Ciao
Crooked

[ 12 March 2001: Message edited by: Crooked ]

[ 12 March 2001: Message edited by: Crooked ]