Re: rsync hanging at "generate_files phase=1"
On Fri, 21 Mar 2008 11:45:20 +0100 Daniel Maher <[EMAIL PROTECTED]> wrote: > I am experiencing a (consistent, reproducible) condition whereby rsync > is hanging indefinitely at the following stage : > generate_files phase=1 > > The condition does not occur if --dry-run is specified - only when the > run is "for real". Finally, i can scp the files without problems, so > it is not a general connection issue, nor is it a problem with > permissions (everything is running via sudo in any case). In case anybody is interested, here's my follow-up to this issue : Eschewing the 2.6.9 that ships by default on Cygwin, I compiled Matt's patched rsync 3.0.0 by hand and moved forward with that binary. After trying a few more scenarios - and hanging each time at the same phase noted above - i tried the --whole-file switch (copy files whole), which solved the problem nicely. Now, of course, i'm not sure /why/ that worked (which is to say that i'm not sure why the algorithm was failing), but there you go. :) -- Daniel Maher signature.asc Description: PGP signature -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync hanging at "generate_files phase=1"
On Fri, 21 Mar 2008 13:53:11 +0100 Giuliano Gavazzi <[EMAIL PROTECTED]> wrote: > > On 21 Mar, 2008, at 11:45 , Daniel Maher wrote: > > --rsync-path="/usr/bin/sudo /usr/bin/rsync" > > --log-file=/opt/rsync-backup/rsync-backup.log > > --backup-dir=/opt/rsync-backup/192.168.0.88/2008-03-21T09:51:42 -e > > "/usr/bin/ssh -i /home/rsync-backup/.ssh/id_rsa" > > [EMAIL PROTECTED]:"/cygdrive/d/BACKUP" /opt/rsync-backup/ > > 192.168.0.88/CURRENT/ > > ssh key for logging in as rsync-backup and sudo restriction in > place. Correct? Of course one that gets hold of the key, could run > rsync as root, overwrite rsync and then rerun that rsync to do what > he pleases. Correct. Of course, some security is better than no security. :) > I wonder though if you really have to specity the ssh. ssh should be > by default and the key is the default key. Well, this protects you > from changes in either rsync defaults or ssh global configuration. What can i say, i like to be explicit. :P > I Wonder too if you will get one or two, given the recent > discussion... should be one, if the list software looks at the To:. Just one. -- Daniel Maher signature.asc Description: PGP signature -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync hanging at "generate_files phase=1"
On 21 Mar, 2008, at 11:45 , Daniel Maher wrote: --rsync-path="/usr/bin/sudo /usr/bin/rsync" --log-file=/opt/rsync-backup/rsync-backup.log --backup-dir=/opt/rsync-backup/192.168.0.88/2008-03-21T09:51:42 -e "/usr/bin/ssh -i /home/rsync-backup/.ssh/id_rsa" [EMAIL PROTECTED]:"/cygdrive/d/BACKUP" /opt/rsync-backup/ 192.168.0.88/CURRENT/ interesting. So presumably you give rsync-backup the option to run only rsync without a password. Double security. ssh key for logging in as rsync-backup and sudo restriction in place. Correct? Of course one that gets hold of the key, could run rsync as root, overwrite rsync and then rerun that rsync to do what he pleases. I wonder though if you really have to specity the ssh. ssh should be by default and the key is the default key. Well, this protects you from changes in either rsync defaults or ssh global configuration. I Wonder too if you will get one or two, given the recent discussion... should be one, if the list software looks at the To:. Giuliano -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html