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

Stephen Shirley diamond at skynet.ie
Fri Jul 15 15:02:12 IST 2005


Mornin',
	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. 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. So i reworked the script to do the copy 
to all the machines/accounts in the list at the same time. It also 
prints out, every second, a list of the machines that have yet to 
complete. In general, it's quite useful, and i thought someone else 
might find it useful too, so here it is:
	http://diamond.nonado.net/misc/parallel-update.sh

Steve
P.s. i haven't actually looked at the source of this in a few years, so 
it's possible there are ways of simplifying some of it, but hey, it 
works ,-)



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