ANNOUNCEMENT - Mogdesign joins i-KOS Digital - click to read why...

3/3 Using Aegir to manage a large amount of sites

02
Jun
2014

This is part 3 of Aegir mini-series.

After all your fancy new sites are up and running, you need to maintain them. Aegir itself is a well-built tool to do that of course, but still there are some nifty hints to make one admin happy.

Updating and upgrading code

Aegir offers a very nice feature for updating and upgrading your code. If you are updating, it’s a no-brainer: - just update the code on the server and you are good to go. But when you upgrade, simply create a new platform, give it some nice version number and migrate all your existing sites to this new platform. Aegir will automatically create a database snapshot before the migration takes place so you can revert anytime you discover a problem.

Some helpful notes:

  • update.php is automatically run
  • it’s possible to run migrations in bulk, or even migrate the whole existing platform to another one

Running stuff on existing sites

Have you ever had to turn on a module on a site? Or run updates.php? Or clear all cache? If not, then you are a Drupal baby I guess. Anyway, I think everyone has realised where this is going by now. Clearing cache on 150 sites is not a trivial task. Aegir has no support for the above mentioned procedures so we have to deal with it somehow. It’s really simple. Just run drush script for all your sites and it’s done.

Like this:

for site in *.mydomain.com; do drush cc all --uri=$site -y; done

drush @sites cc all -y

I really like the power and simplicity of this one-liner, feel free to be a genius and use it instead of insane clicking.

 

If this tutorial helped you at least a little, I am glad! 
In case of any questions, submit your comments below. Thanks!
 
 

About the author

m1n0's picture

Milan is a web developer with more than 5 years of experience in web development and Drupal. Milan is a technology enthusiast and he loves to play with new gadgets and development techniques. He is also a musician and he loves to play drums with his band.

LIKED THE POST? SPREAD THE WORD!

del.icio.usStumbleUponDiggFacebookLinkedIn

12 comments so far

pebosi's picture

Shorter with alias
<code>drush @sites cc all -y</code>

m1n0's picture

Thanks, I didn't notice that alias before! I will update the blog.

fifa 15 ultimate team coins's picture

In response to the Minister Barrette, who has called the current program "open bar" Ms. Joizil replied that "if we had to cut all programs where there is abuse, there would be no Quebec government .dropoff window There may be a drift, but there are also children not born thousands fifa 15 ultimate team coins

Tushar's picture

Hi Milan,
Thanks for the nice tutorial. Its really works.

ayakkabi's picture

I really enjoyed

sandvic panel's picture

I will update the blog.

Mohammad's picture

This post will assist the internet users for creating new blog or
even a weblog from start to end. see this rocket french

best-write-my-essay.com's picture

If you are short of your energy and effort or lack excellent ability as a copywriter to produce a well-written educational papers, visit best-write-my-essay.com and get professional assistance from our experienced writers!

boss's picture

Very interesting post. Thanks for the helpful read Loved it.

fjdjdfj's picture

Even before updating the tablet showed a peak value benchmarks, even after the update is one of the most powerful mobile devices on the market.
simpsons tapped out cheats

apertura partita iva's picture

Come il tempo migliora e l'estate rotola lentamente in tutto il paese, i leader dei partiti di tutto il mondo l'unità di superficie spettro politico svolazzando qua e là in cerca di sostegno per il futuro sesto potrebbe elettorale. E mentre ci sono un gruppo molti problemi da affrontare, la questione apertura partita iva è socio in infermieristica sempre più importante argomento per quei proprietari di casa a casa considerando finestre a ghigliottina per la sua casa.

fjhkfhds's picture

Ce est parce que EA sont actuellement une maintenance sur leurs serveurs FIFA 15 et le temps d'arrêt prévu va être sept heures. L'entretien a effectivement commencé à 21 heures, heure du Pacifique et 5 heures de temps Royaume-Uni, de sorte que les serveurs FIFA 15 sera de retour à 4h du matin, heure du Pacifique et 12 heures, heure britannique le 12 Décembre.
crack fifa 15

Add new comment