Ok: You're using an external transport (rsh, unless you've defined RSYNC_RSH as something else(probably ssh)). First thing to check is whether you can rsh to destinationmachine. See what happens if you do "rsh destinationmachine uname -a". Does this report back the information for destinationmachine, or does it give you "Permission denied". If so, get rsh working. From your error, I'm certain this is the problem, as if it were a permission problem on a file or directory, you'd get an error more like this ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tconway@atlas /site/local/share/ToolSync/newsync>rsync newsync.log.2 atlas:/kernel mkstemp .newsync.log.2.GYaiMq failed rsync error: partial transfer (code 23) at main.c(537) tconway@atlas /site/local/share/ToolSync/newsync> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ . Note: If this is an hpux, SCO, and maybe some other primitive systems, the name "rsh" is reserved for a restricted shell, and they use "remsh" instead as the command. Rsync already knows about this, but you need to do the right command for your test. Investigate /etc/hosts.equiv, /etc/hosts.deny, $HOME/.rhosts, your name resolution, etc.. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" mbp@humbug.org.au Sent by: rsync-admin@lists.samba.org 02/04/2002 02:14 AM To: rsync@lists.samba.org cc: Lakshminarayanan Radhakrishnan <lradhakr@ssd.usa.alcatel.com> (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: Doubt in Rsync !! Classification: Sir, How to run the rsync server in the remote machine. I want to mirror the set of directories from one machine to another machine which are in the network. I used the following command : /usr/sbin/rsync -vv --delete --recursive --times --perms --update source directory destinationmachine:destination directory. I got the error: Permission denied. How to tackle this error ? thanks laks -----------------R.Lakshminarayanan -----------------Axes Technologies India Pvt. Ltd., -----------------Chennai - 600 034. -----------------Email : lradhakr@ssd.usa.alcatel.com, Phone: 8253323
I just played back your mail in my head, and realized that you mentioned the rsync server. I read your command, from which it was plain that you were NOT trying to contact a rsync server, and gave instructions based on that. In case you were trying to contact a rsync server (rsyncd), I suggest you read the man pages for both rsync and rsyncd.conf. the rsync manpage explains how to invoke rsync to have it be a server, and the rsyncd.conf manpage explains how to set up the required configuration file. The rsync manpage also explains how to invoke rsync to CALL a server (as opposed to starting a temporary process via an external transport to act as your remote server, as your commandline showed). Direct consultation of the documentation which Tridge, Martin, Dave, and everybody else has put so much work into, can cover the broad possibilities with much less latency than an email list. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Tim Conway 02/04/2002 08:33 AM To: mbp@humbug.org.au cc: Lakshminarayanan Radhakrishnan <lradhakr@ssd.usa.alcatel.com> rsync@lists.samba.org rsync-admin@lists.samba.org Subject: Re: Doubt in Rsync !! Classification: Unclassified Ok: You're using an external transport (rsh, unless you've defined RSYNC_RSH as something else(probably ssh)). First thing to check is whether you can rsh to destinationmachine. See what happens if you do "rsh destinationmachine uname -a". Does this report back the information for destinationmachine, or does it give you "Permission denied". If so, get rsh working. From your error, I'm certain this is the problem, as if it were a permission problem on a file or directory, you'd get an error more like this ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tconway@atlas /site/local/share/ToolSync/newsync>rsync newsync.log.2 atlas:/kernel mkstemp .newsync.log.2.GYaiMq failed rsync error: partial transfer (code 23) at main.c(537) tconway@atlas /site/local/share/ToolSync/newsync> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ . Note: If this is an hpux, SCO, and maybe some other primitive systems, the name "rsh" is reserved for a restricted shell, and they use "remsh" instead as the command. Rsync already knows about this, but you need to do the right command for your test. Investigate /etc/hosts.equiv, /etc/hosts.deny, $HOME/.rhosts, your name resolution, etc.. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" mbp@humbug.org.au Sent by: rsync-admin@lists.samba.org 02/04/2002 02:14 AM To: rsync@lists.samba.org cc: Lakshminarayanan Radhakrishnan <lradhakr@ssd.usa.alcatel.com> (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: Doubt in Rsync !! Classification: Sir, How to run the rsync server in the remote machine. I want to mirror the set of directories from one machine to another machine which are in the network. I used the following command : /usr/sbin/rsync -vv --delete --recursive --times --perms --update source directory destinationmachine:destination directory. I got the error: Permission denied. How to tackle this error ? thanks laks -----------------R.Lakshminarayanan -----------------Axes Technologies India Pvt. Ltd., -----------------Chennai - 600 034. -----------------Email : lradhakr@ssd.usa.alcatel.com, Phone: 8253323
Sir, How to run the rsync server in the remote machine. I want to mirror the set of directories from one machine to another machine which are in the network. I used the following command : /usr/sbin/rsync -vv --delete --recursive --times --perms --update source directory destinationmachine:destination directory. I got the error: Permission denied. How to tackle this error ? thanks laks -----------------R.Lakshminarayanan -----------------Axes Technologies India Pvt. Ltd., -----------------Chennai - 600 034. -----------------Email : lradhakr@ssd.usa.alcatel.com, Phone: 8253323 -------------- next part -------------- HTML attachment scrubbed and removed
Glad you've got it going. Performance depends on the particular version of rsync, options used, network, dasd, dasd interface (nfs, samba, direct (SCSI (version), IDE, FC)), Operating systems, memory, processors, other load, network traffic.... I actually get pretty cruddy results with rsync in my application, which involves mirroring a NAS device containing roughly 2M files in 102Mb, over a wan, using solaris to run rsync, forced, by a flaw in the NAS nfs unlink implementation which reorders unlinks, to use NFS2, which exposes the solaris mtime bug. If I try to do it all, it takes about 2 days to grow to around 3Gb in memory, then crashes (there's plenty left over), so i can't do the whole thing in one swipe, which means hard links are not propogated, and deletions can be orphaned by the list generator (the script i use to break the jobs into chunks rsync can handle). People running against directly-attached dasd, or fast DFS, and doing reasonable-sized jobs, get really good speeds, and great efficiency. I've had to write my own replacement, which is about to go into production, but I still love rsync. Within its limitations, it's a superior tool. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Lakshminarayanan Radhakrishnan <lradhakr@ssd.usa.alcatel.com> Sent by: rsync-admin@lists.samba.org 02/05/2002 08:57 AM To: Tim Conway/LMT/SC/PHILIPS@AMEC cc: mbp@humbug.org.au rsync@lists.samba.org rsync-admin@lists.samba.org Subject: Re: Doubt in Rsync !! Classification: Dear Mr.Tim, Thank you very much for your valuable suggestions. Now I am able to mirror the set of files from one system to another system which are on the net. Yesterday, I calculated it is mirroring 188MB file in 63 sec from one side to another side. Good performance. Is anywhere the performance about rsync is mentioned in terms of file size / time. I am going to use this rsync command in script continously to mirror the two systems always. Once again thanks, regards, laks tim.conway@philips.com wrote: I just played back your mail in my head, and realized that you mentioned the rsync server. I read your command, from which it was plain that you were NOT trying to contact a rsync server, and gave instructions based on that. In case you were trying to contact a rsync server (rsyncd), I suggest you read the man pages for both rsync and rsyncd.conf. the rsync manpage explains how to invoke rsync to have it be a server, and the rsyncd.conf manpage explains how to set up the required configuration file. The rsync manpage also explains how to invoke rsync to CALL a server (as opposed to starting a temporary process via an external transport to act as your remote server, as your commandline showed). Direct consultation of the documentation which Tridge, Martin, Dave, and everybody else has put so much work into, can cover the broad possibilities with much less latency than an email list. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Tim Conway 02/04/2002 08:33 AM To: mbp@humbug.org.au cc: Lakshminarayanan Radhakrishnan <lradhakr@ssd.usa.alcatel.com> rsync@lists.samba.org rsync-admin@lists.samba.org Subject: Re: Doubt in Rsync !! Classification: Unclassified Ok: You're using an external transport (rsh, unless you've defined RSYNC_RSH as something else(probably ssh)). First thing to check is whether you can rsh to destinationmachine. See what happens if you do "rsh destinationmachine uname -a". Does this report back the information for destinationmachine, or does it give you "Permission denied". If so, get rsh working. From your error, I'm certain this is the problem, as if it were a permission problem on a file or directory, you'd get an error more like this ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tconway@atlas /site/local/share/ToolSync/newsync>rsync newsync.log.2 atlas:/kernel mkstemp .newsync.log.2.GYaiMq failed rsync error: partial transfer (code 23) at main.c(537) tconway@atlas /site/local/share/ToolSync/newsync> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- -----------------R.Lakshminarayanan -----------------Axes Technologies India Pvt. Ltd., -----------------Chennai - 600 034. -----------------Email : lradhakr@ssd.usa.alcatel.com, Phone: 8253323