Showing posts with label backups. Show all posts
Showing posts with label backups. Show all posts

Friday, 11 December 2009

Definitely good Karma!

My installation of Ubuntu 9.10, the Karmic Koala went without a hitch. Well, that's not strictly true, as I did have a few problems getting the BackupPC server to restore data onto my newly formatted and repartitioned hard drive.
It was a fairly simple fix though - I had forgotten to add a couple of parameters into my rsyncd.conf file: something that became apparent after a cup of strong coffee and a ponder.
Once the rsyncd.conf file was corrected, I was able to start moving data between the backuppc server and my workstation with surprising rapidity.

The main problem I had was restoring my mySQL databases. I had used mysqlhotcopy to create backup copies of the databases on the system. It took a couple of attempts to get the databases working, but I got there in the end.

The process I followed was:
  • log in to the mysql client and create the databases (create database {databasename})
  • stop the mysql server
  • when the databases have been created, copy the backed up files to /var/lib/mysql/{databasename}
  • As I copied the files over as root, I then needed to call chown mysql:mysql /var/lib/mysql/{databasename}/*
  • start the mysql server
  • log into the mysql client and check the databases were OK - a couple of describes and selects does the trick. It's pretty obvious when there's a problem
  • finally, test the web application(s) that use the databases.
As far as my website development projects were concerned, rather than use backuppc to restore them, I opted to use subversion to load them from the repository I set up last weekend.

So, apart from a couple of applications that I need to load and setting up rsync so it runs as a daemon, the system is fully functional.

My first impressions are of a system that loads really quickly. The new versions of OpenOffice.org now supports the latest .docx files, so it looks like it's fully compatible with the most recent versions of MS Office. That said, I haven't tried spreadsheets yet...

Overall, a good day's work. Time for another coffee and a surf to find out more about PHP development frameworks!

Wednesday, 9 December 2009

Good Karma...

I downloaded the latest version of Ubuntu this evening. Version 9.10 is known as the "Karmic Koala". I have been running "Hardy Heron" for quite a while and whilst I am generally happy with it, there have been a couple of things that bothered me. Moreover, there are new versions of Firefox and OpenOffice.org which I am definitely interested in.

The new version looks much slicker and loads very quickly indeed, so I will definitely upgrade.

Upgrading won't be a trivial task though as I will have to reinstall quite a lot of software. The list includes: Apache, MySQL, PHP, Thunderbird, Bluefish, Subversion and GPass amongst others. Ubuntu's package manager makes software installation nice and easy. My broadband connection will be busy tomorrow morning!

I have good quality backups of my data, having installed BackupPC on my "server", which is actually another PC running as an ubuntu workstation with Apache, MySQL, PHP and Subversion. For added belts and braces, I have added all of the websites that have been under development to my Subversion repository. This is in addition to the BackupPC backups!
When I pluck up the courage, the desktop edition on this machine will be replaced with a server edition.

I think tomorrow will be an interesting day - hopefully it won't be too "interesting"!

The other thing that piqued my interest today was the Zend framework for developing web applications. This and other development frameworks look very exciting and I will be doing quite a bit of research on Zend and other frameworks before I make a start on coding my next project.