Image

Imageanivair wrote in Imagelinux

server backup to another machine

I've got 2 machines here. One is running my dapper based ltsp server. The other is the old server.

The goal here is to make the old server the backup server for the new server.

My method here is to simply write applicable changes to the new machine every day. They are both in hte same office.

So the question is, what is my best option?

A big favorite seems to be using the tar command as follows:

tar cvpzf mybackup.tgz / --exclude=/backup.tgz --exclude /proc --exclude=/lost+found --exclude=/mnt --exclude=/sys

to create a backup and then store it to media somewhere else.

That doesn't really work for me. I want the machines to be interchangeable, so that if I need to do hardware work on one I can bring the other one up.

So what am I looking at? I could use tar to create a backup of my dapper machine (minus some directories that are hardware dependant, maybe?) and overwrite what's there (hoary). Will that work?

My other option is to do a clean dapper install, move over direcoties containing user information, libraries, etc and then run an rsynch between the two machines every night.

Thoughts?