The pitfalls of BPOS Exchange

I admit it is all too easy to be seduced into pushing your high tco services like exchange to ‘the cloud’. I mean the benefits speak for themselves don’t they, but the cons, they don’t immediately spring to mind.

Having gone through a migration to BPOS Exchange it certainly isn’t the experience I was expecting. thats not to say there aren’t good points, because there are, it’s just that for me there are more negatives than I anticipated.

Loss of admin control
I was prepared to loose a certain amount of admin control; you have to expect it when you’re moving services externally, in fact in many cases not having to interact with the service may be a reason to move it. In my case this has caused nothing but issues. [Read more…]

How to configure a MySQL cronjob backup without exposing your password

Create a .my.cnf file in the home directory, (note the leading ‘.’ this hides the file)
nano ~/.my.cnf

Add the following section to your file:
[mysqldump]
user = mysqluser
password = yourpassword

change the file permission to 600 to secure the cnf file.
chmod 600 ~/.my.cnf

configure your cronjob as normal, note that you do not need to pass the -p switch as crond will read in your .my.cnf
crontab -e
0 30 * * * mysqldump databasename -u mysqluser > pathtofile.sql

thats it nice and simple

Further crontab syntax info can be found here

How to add the epel repository to Centos

This is something I invariably end up doing at least once a build; very useful if you’re short on time and want to install git etc via yum rather than compiling.

for 32bit:
#rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

for 64bit:
#rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

perform a repo update…..
#yum repolist
and you should now see epel listed as a valid repo

repo id       repo name                                           status
addons        CentOS-5 - Addons                                   enabled:     0
base          CentOS-5 - Base                                     enabled: 2,705
epel          Extra Packages for Enterprise Linux 5 - i386        enabled: 5,486
extras        CentOS-5 - Extras                                   enabled:   253
updates       CentOS-5 - Updates                                  enabled:   273
repolist: 8,717

You can find more info on the epel project here