LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] TOTD: parallel update using rsync

[ILUG] TOTD: parallel update using rsync

Brian Scanlan brian.scanlan at gmail.com
Fri Jul 15 15:25:49 IST 2005


Hi,

On 7/15/05, Stephen Shirley <diamond at skynet.ie> wrote:
>         A few years ago, i got tired of trying to keep my normal configs (bash,
> vim, cvs, screen) in sync on all the machines i had shell accounts on,
> so i decided to script it. So i defined one set of configs to be the
> master set, and wrote a script on that machine to copy the configs to a
> list of other machines/accounts.

Subversion is fantastically brilliant for this task.

For example, I've got a service running on 4 servers in three
locations. One of them is nominated the "test" server, where new
configs can be tried out. When I'm happy editing
/etc/appname/config.file, I just do a "svn ci
/etc/appname/config.file" and move onto my next task. A cronjob on all
servers does svn update's and restarts services as required.

This methodology can easily be applied to .bash_profile, .vimrc etc.

There's no reason why you couldn't use CVS or arch for this task,
however I really like svn's model and commands.

> That was fine, except it took ages.
> Anytime a machine wasn't reachable (due to it being off, or the ssh
> tunnel being down, mostly), everything just hung waiting for the
> connection attempt to time out.

"Pull" is better than "Push":
http://www.infrastructures.org/bootstrap/pushpull.shtml

Brian.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell