Backup mail

Discussion in 'Tips/Tricks/Mods' started by juansa, Nov 12, 2014.

  1. juansa

    juansa New Member

    Is there any script or any other way to backup mail? That includes users and data.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    All mail users are in the dbispconfig database and all email data in /var/vmail, so all you have to do is to create a backup of the dbispconfig database and all files in /var/vmail
  3. juansa

    juansa New Member

    I'm new to rsync and I'm planning to write a script and call it from cron once a day. The goal is to make daily incremental backups of all mail contents for domain.tld. So, would this be ok?:

    #! /bin/bash
    rsync -bavhz /var/vmail/domain.tld /backupdata/vmail/domain.tld

  4. Eksperten

    Eksperten New Member

Share This Page