Hello, I had a question on rsynch'ing, please do help me on this, I have scenario where,I need to synch the two softwares, where both the software are across the network, on different cells( AFS cells). For ex: first1 - /afs/tr/software , second1 - /afs/ddc/software Both the softwares are same & fist1 cell will be constantly updating and I need to synch this software to sencond1. In this scenario what command I should use ? I will appreciate your great help. Thanks in advance Thanks Uma
Uma asks:> I had a question on rsynch'ing, please do help me on this, > I have scenario where,I need to synch the two softwares, where > both the software are across the network, on different cells > (AFS cells). > For ex: first1 - /afs/tr/software , second1 - /afs/ddc/software > Both the softwares are same & fist1 cell will be constantly > updating and I need to synch this software to sencond1. In this > scenario what command I should use ?There are many ways to do it based on your needs, and from where you want to drive the process. #### Push using local filesystems If both AFS trees are on the same LAN with low latency and high bandwidth available, you can just access them directly: # On any server... cd /afs/tr/software rsync -ax . /afs/ddc/software #### Push to remote server using rsh/ssh If the AFS trees exist is different locations with significant delay between them or not much bandwidth, then is is more efficient to use rsync between servers at both locations to minimize bandwidth needs between locations. Each server (eg: TR-SERVER and DDC-SERVER) would scann the drectory trees locally and transmit only inventory information and changes to files over the WAN. # On TR-SERVER... cd /afs/tr/software rsync -ax . USER@DDC-SERVER:/afs/ddc/software The above pushes files out using rsh. If you want to use ssh or a Kerberized rsh, consider "-e ssh" or "-e 'rsh -K'". If the content is usually compressable, consider using "-z" to save more bandwidth. #### Suck from remote server with rsyncd You can also suck files by setting up an rsync server on a server at the /afs/tr node and have rsync clients on the net connect to the server to suck down their files. I haven't used rsyncd before, but the syntax might look something like this: # On DDC-SERVER... cd /afs/ddc/software rsync -ax USER@TR-SERVER::software . # In /etc/rsyncd.conf on TR-SERVER... [software] path=/afs/tr/software ... other options based on access/security ... See the rsync(1) man page for more information about syntax with an rsync server. See rsyncd.conf(5) for more info about configuring rsync servers. There are examples on how to setup and rsync server here: http://everythinglinux.org/rsync/ http://www.freeos.com/articles/4042/ #### Suck from remote server with rsh/ssh Another simpler way to use rsync to suck files over the network using rsh (or ssh) is: # On DDC-SERVER... cd /afs/ddc/software rsync -ax [-e ssh] USER@TR-SERVER:/afs/tr/software . There are many other command options you might consider, but they are based more on the content than connectivity. -- Eric Ziegast
Doesn't AFS do inter-cell communication? Why not just have first1 - /afs/tr/software be the RW replica, and second1 - /afs/ddc/software be a RO replica? You just release them all instead of messing with rsync at all? With the source constantly changing, you'll generate a lot fewer errors that way, and it'll be a lot easier on your resources. If AFS can't do this, I apologize for the useless info. My experience is with IBM/TransARC DCE/DFS (and that's almost 2 years stale). 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?" "Umadevi C Reddy" <rumadevi@in.ibm.com> Sent by: rsync-admin@lists.samba.org 05/16/2002 05:08 PM To: rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: rsynch related question Classification: Hello, I had a question on rsynch'ing, please do help me on this, I have scenario where,I need to synch the two softwares, where both the software are across the network, on different cells( AFS cells). For ex: first1 - /afs/tr/software , second1 - /afs/ddc/software Both the softwares are same & fist1 cell will be constantly updating and I need to synch this software to sencond1. In this scenario what command I should use ? I will appreciate your great help. Thanks in advance Thanks Uma -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Hi Thanks for info. Let me clear what I want to achieve from this. Right now first1(/afs/tr/software ) is running has a master and a period of time second1(/afs/ddc/software) will take over, after that first1 will not exists. I am in the process of transition work. Currently first1 is owned by some one else and second1 is, we are going to maintain in the future. One solution is I can cutover and transfer directly, but it is not immediate and mean time I should see how it works on second1 environment and for that purpose I am started maintaining second1( need to modify hardcode paths and things like that) and also I would like to reflect changes made in first1. So thinking of using rsync. Now you can give suggestion, which one is feasible? Thanks a lot Warm regards, Uma IBM Pittsburgh, 11 Stanwix Street, Pittsburgh, PA 15222 Tel: (412) 667-3121 e-mail: rumadevi@in.ibm.com tim.conway@phi lips.com To: Umadevi C Reddy/India/IBM@IBMIN cc: rsync@lists.samba.org 05/17/2002 Subject: Re: rsynch related question 01:34 PM Please respond to tim.conway Doesn't AFS do inter-cell communication? Why not just have first1 - /afs/tr/software be the RW replica, and second1 - /afs/ddc/software be a RO replica? You just release them all instead of messing with rsync at all? With the source constantly changing, you'll generate a lot fewer errors that way, and it'll be a lot easier on your resources. If AFS can't do this, I apologize for the useless info. My experience is with IBM/TransARC DCE/DFS (and that's almost 2 years stale). 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?" "Umadevi C Reddy" <rumadevi@in.ibm.com> Sent by: rsync-admin@lists.samba.org 05/16/2002 05:08 PM To: rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: rsynch related question Classification: Hello, I had a question on rsynch'ing, please do help me on this, I have scenario where,I need to synch the two softwares, where both the software are across the network, on different cells( AFS cells). For ex: first1 - /afs/tr/software , second1 - /afs/ddc/software Both the softwares are same & fist1 cell will be constantly updating and I need to synch this software to sencond1. In this scenario what command I should use ? I will appreciate your great help. Thanks in advance Thanks Uma -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
I don't know how to do it, only that at least in the case of DCE/DFS, it can be done. 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?" "Umadevi C Reddy" <rumadevi@in.ibm.com> 05/17/2002 12:09 PM To: Tim Conway/LMT/SC/PHILIPS@AMEC cc: rsync@lists.samba.org Subject: Re: rsynch related question Classification: Hi Thanks for info. Let me clear what I want to achieve from this. Right now first1(/afs/tr/software ) is running has a master and a period of time second1(/afs/ddc/software) will take over, after that first1 will not exists. I am in the process of transition work. Currently first1 is owned by some one else and second1 is, we are going to maintain in the future. One solution is I can cutover and transfer directly, but it is not immediate and mean time I should see how it works on second1 environment and for that purpose I am started maintaining second1( need to modify hardcode paths and things like that) and also I would like to reflect changes made in first1. So thinking of using rsync. Now you can give suggestion, which one is feasible? Thanks a lot Warm regards, Uma IBM Pittsburgh, 11 Stanwix Street, Pittsburgh, PA 15222 Tel: (412) 667-3121 e-mail: rumadevi@in.ibm.com tim.conway@phi lips.com To: Umadevi C Reddy/India/IBM@IBMIN cc: rsync@lists.samba.org 05/17/2002 Subject: Re: rsynch related question 01:34 PM Please respond to tim.conway Doesn't AFS do inter-cell communication? Why not just have first1 - /afs/tr/software be the RW replica, and second1 - /afs/ddc/software be a RO replica? You just release them all instead of messing with rsync at all? With the source constantly changing, you'll generate a lot fewer errors that way, and it'll be a lot easier on your resources. If AFS can't do this, I apologize for the useless info. My experience is with IBM/TransARC DCE/DFS (and that's almost 2 years stale). 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?" "Umadevi C Reddy" <rumadevi@in.ibm.com> Sent by: rsync-admin@lists.samba.org 05/16/2002 05:08 PM To: rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: rsynch related question Classification: Hello, I had a question on rsynch'ing, please do help me on this, I have scenario where,I need to synch the two softwares, where both the software are across the network, on different cells( AFS cells). For ex: first1 - /afs/tr/software , second1 - /afs/ddc/software Both the softwares are same & fist1 cell will be constantly updating and I need to synch this software to sencond1. In this scenario what command I should use ? I will appreciate your great help. Thanks in advance Thanks Uma -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html