Hi, I am using rsync 3.0.4 on a WinXP machine (with CygWin) to synchronize my files to a RedHat Linux server. Everything is working perfectly, but there is one thing I do not understand. Apparently there is a difference in pushing and pulling files with rsync. When I push my files to the server with this command, I see one rsync process on my WinXP machine, just as expected rsync -rlt -e "ssh -T" Test.pst <user>@<ip address>:/data But when I pull my files from the server to my WinXP machine with this command, I see two rsync processes on my WinXP machine. rsync -rlt -e "ssh -T" <user>@<ip address>:/data/Test.pst . Can anybody confirm that this is the default behavior ? If yes, what would be the reason for spawning an extra child rsync process ? Any information is appreciated. Warm regards, Jan
I'm not sure (maybe someone else can confirm/infirm?) but I think when there is a server it is "normal" that there is one process to handle connexions and one process for each transfer. Think about many clients connecting to your server. One process will dialog with all clients (from different adresses, wanting different things)? Best regards, Vitorio Le 1 juin 09 ? 12:22, Jan Alphenaar a ?crit :> Hi, > > I am using rsync 3.0.4 on a WinXP machine (with CygWin) to > synchronize my > files to a RedHat Linux server. Everything is working perfectly, but > there > is one thing I do not understand. > > Apparently there is a difference in pushing and pulling files with > rsync. > When I push my files to the server with this command, I see one rsync > process on my WinXP machine, just as expected > > rsync -rlt -e "ssh -T" Test.pst <user>@<ip address>:/data > > But when I pull my files from the server to my WinXP machine with this > command, I see two rsync processes on my WinXP machine. > > rsync -rlt -e "ssh -T" <user>@<ip address>:/data/Test.pst . > > Can anybody confirm that this is the default behavior ? If yes, what > would > be the reason for spawning an extra child rsync process ? > > Any information is appreciated. > > Warm regards, > > Jan > > -- > Please use reply-all for most replies to avoid omitting the mailing > list. > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
On Mon, 2009-06-01 at 12:22 +0200, Jan Alphenaar wrote:> Apparently there is a difference in pushing and pulling files with rsync. > When I push my files to the server with this command, I see one rsync > process on my WinXP machine, just as expected> But when I pull my files from the server to my WinXP machine with this > command, I see two rsync processes on my WinXP machine.> Can anybody confirm that this is the default behavior ? If yes, what would > be the reason for spawning an extra child rsync process ?Yes, this is the expected behavior. For each job, rsync uses one process on the sending side (the "sender") and two on the receiving side (the "generator" and the "receiver"); see http://rsync.samba.org/how-rsync-works.html . As a special case, a local copy uses three processes all on the local machine. A listening daemon has a master process accepting new connections in addition to the process(es) servicing existing connections, while a single-use daemon has no master process. -- Matt