Happy new year to everyone

Thanks to all the people that follow mytweets and blog posts. 2010 hasn't been the greatest of years for me personally but here is to 2011 being a lot better! (with more posts)

Posted: 31-Dec-2010

View: 2170

Permalink: here

backup and zip all mysql databases shell script

This isn't rocket science but probably something good to share for anyone making the move to Linux for web hosting. Below is a quick script that I run daily to back up all MySQL DB's which then have placed somewhere safe.

Open Nano/Vi/Gedit and create a file called mysql_backup.sh then add the following lines:

view plain print about
1#!/bin/bash
2cd /tmp/
3echo "creating mysqldump in /tmp/all-database.sql"
4mysqldump -u YOUR_USERNAME -pYOUR_PASSWORD --all-databases >
all-database.sql
5echo "Next we tar/zip the file"
6tar cvf db_dump.tar all-database.sql
7echo "All done!"

At the moment this is just a text file which cannot be executed via the terminal, so to fix this run the following:

view plain print about
1chmod 755 mysql_backup.sh

Then you can run this as any normal shell script

view plain print about
1./mysql_backup.sh

There is a lot more you can do with this like moving the file to another location, delete the dump behind you etc, but this should give you a good starting ground.

Posted: 08-Oct-2010

View: 3464

Permalink: here

My blog has moved

Please update your bookmarks and feeds for my site.

I now have a Mango Blog at:

http://www.andyjarrett.com/blog

Feed URL: http://feeds.feedburner.com/andyjarrett

Posted: 12-May-2009

View: 1925

Permalink: here

Ubuntu 8.04 Jeos VMware image

You always find these things out after the fact, but VMWare do provide an image of Ubuntu 8.04 Jeos with VMware Tools and a OpenSSH Server pre-installed.

Once you go through a simple registration process you are offered a couple of options to download i.e. via Torrent, HTTP

Find out more at http://www.vmware.com/appliances/directory/1363

As a side note, Virtual Appliance Marketplace actually offers a range of pre-compiled images for download which is worth looking into if you want to try out an OS etc. There is even an Open BlueDragon image there, pre-built and ready to deploy.

Posted: 26-Aug-2008

View: 4160

Permalink: here