Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hi,
I just setup a rsync server (2.6.3) with ssh and copy client's id_rsa.pub to server's authorized_keys file( so don't need password). the ssh transport has errors like this:
[backup@localhost ~]$ rsync -avz --rsh="ssh -l backup" test1 backup@192.168.1.189::backup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
backup is both my client/server user account ,join in users group.
I use rsync in a totally different way so I'm not all that familiar with how you're using it. However, the backup@192.168.1.189::backup line looks wrong to me. I would expect a path after the login@address portion. Something like:
USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION
It is sometimes useful to use various features of an rsync daemon (such as named modules) without actually allowing any new socket connections into
a system (other than what is already required to allow remote-shell access). Rsync supports connecting to a host using a remote shell and then
spawning a single-use "daemon" server that expects to read its config file in the home dir of the remote user. This can be useful if you want to
encrypt a daemon-style transfer’s data, but since the daemon is started up fresh by the remote user, you may not be able to use features such as
chroot or change the uid used by the daemon. (For another way to encrypt a daemon transfer, consider using ssh to tunnel a local port to a remote
machine and configure a normal rsync daemon on that remote host to only allow connections from "localhost".)
From the user’s perspective, a daemon transfer via a remote-shell connection uses nearly the same command-line syntax as a normal rsync-daemon
transfer, with the only exception being that you must explicitly set the remote shell program on the command-line with the --rsh=COMMAND option.
(Setting the RSYNC_RSH in the environment will not turn on this functionality.) For example:
rsync -av --rsh=ssh host::module /dest
If you need to specify a different remote-shell user, keep in mind that the user@ prefix in front of the host is specifying the rsync-user value
(for a module that requires user-based authentication). This means that you must give the ’-l user’ option to ssh when specifying the remote- shell, as in this example that uses the short version of the --rsh option:
hi
can anyone tell me the complete procedure to setup the rsync server.
currently installed with rsync and running it to take backup locally
now want to try backing up the local directories into remote system so please help me out to solve this issue
you are telling the rsync srcipt to transfer the files remotely
but before that we should set up the rsync server and i need help in setting up the server
let me explain briefly
i insalled rsync on my local machine and taking the backup from one directory to other on same machine.
now i need to send the data from my local machine to remote machine using rsync and for that i need to set up rsync as an server over ssh.
i want help in setting up the rsync server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.