Script for LVM and rsync backup
Posted on 2010-08-17
I need to backup my email server. I want to use rsync, but because files are in a constant state of change (email coming in and out, logs changing, etc), I think it would be much cleaner to take an LVM snapshot first, then rsync it.
Can someone recommend a script that would create the LVM snap and then rsync it to the secondary server? I have made the private and public keys (I can rsync just fine right now, except for all the files and the database that are in states of chaneg, it's a postgre db if that helps any).