I've put some shell scripts together to automate the backup process of my root server (basically a LAMP system).
You can read the how-to and get the download links to the backup scripts at mycodedump wiki.
For those how just want the code, fast - here you go:
Any comments or suggestions for improvements etc. are welcome!