Backing up a VPS with duplicity?

I’ve got a total of 3 VPS’s from different providers now and I’ve been trying to decide the best way to back them all up. Plus I’ve got about 7GB of documents, photos and videos on my home PC and if everything could be backed up to the same place then even better.

For the past month I’ve been using Amazon’s S3 along with Duplicity.

There are a few really good points to using this method –

  • the later versions of duplicity are built to work with S3, it’s one of the many options
  • duplicity only sends files that have changed since the last backup reducing the bandwidth you use
  • S3 is pretty cheap and you would hope, being Amazon, that your data is pretty secure
  • although not mountable as a filesystem yet you can access S3 through a plugin in firefox
  • it is possible to encrypt your data on S3

Continue reading

Monitoring a VPS with munin

I’ve been looking round for something simple and light-weight to monitor my 2 VPS’s. I wanted to see cpu, memory, disk usage output to a web page with graphs.

Munin looks quite good so I though I’d have a go at installing that.

Installation on Ubuntu couldn’t have been easier, just –

apt-get install munin-node munin

and it was done.

That created a folder called /var/www/munin so this has to be accessible through your current web server config or you might need to change a few things.

Continue reading

Forgotten Hyperic password

I setup Hyperic a while ago and rather stupidly forgot the hqadmin password!

If the same happens to you it’s fairly easy to reset it. This assumes you’re using the default postgres database  –

cd to your Hyperic server’s bin directory

cd ~/hyperic/server-3.1.1/bin

Continue reading

PXE boot WinPE 2 (Vista) using Linux as the PXE Server

Spent a little while trying to get WinPE2 (Vista) to boot via PXE from a linux server and thought it could be useful to someone. We already had our Red Hat stuff booting from there and it seemed like a good idea to keep it in one place!

Some of the stuff could be useful for booting via PXE from a Windows box too

Windows XP was used for WAIK stuff
Fedora Core 6 was used for PXE Server
Both running on VMWare Server along with a blank VMWare machine as the PXE client
* Note – there’s a bug in RHEL5 that’s stop’s the tftpd.remap file working. Not sure how many versions this affects

Continue reading

Installing Mysql and Apache [part3]

Now we’re going to install mysql and apache and make a few changes so that they run OK in limited memory. I’m going to use the package manager to install them. You can compile and install them from source to get exactly what you want but be prepared to update them manually as bug and vulnerabilities are fixed.

Continue reading

Securing my Ubuntu VPS [part2]

Now we’re updated to Gutsy it’s time to secure our system a little

First a firewall. Linux comes with a command called iptables for setting up firewall rules. It can be fairly complicated to use but we only want to do something nice and simple so we can just write the rules by hand.

Continue reading