postfix virtual users rsync mx backup?

Discussion in 'Server Operation' started by unclecameron, Jul 30, 2009.

  1. unclecameron

    unclecameron New Member

    I have a box running lenny/postfix/mysql/etc with virtual domains/users and want to make a backup mx box. Can I just rsync -auv the /home/vmail maildirs and periodically sync the mysql db which holds the maps/users into the backup mx box, or is it more complicated than that? Will I lose passwords or break encryption or certs somehow? If this a good way to do it, I'll post the scripts I use to do it.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I think you should try MySQL replication instead of using rsync for the database.
     
  3. unclecameron

    unclecameron New Member

    okay, I'll try that, will anything else break with postfix/courier/amavid/sasl/pam?
     
  4. falko

    falko Super Moderator Howtoforge Staff

Share This Page