|
[Hỏi] Về việc Backup restore chi iRedmail -
21-03-2011, 14:21 21-03-2011
Hiện tại sếp em đang yêu cầu em ngâm cứu con iRedmail, về việc triển khai chạy thì ok hết rồi nhưng hiện tại em gặp khó khăn trong việc backup và restore iRed mail
Nếu dùng phpadmin or mysqldumper thì em backup được 3 cái database 9 cho iRedmail là : vmail, roundcubemail, va policyd...restore bang phpadmin va mysqldumper thì không có gì khó khăn hết vì khá đơn giản.
Khó khăn ở đây là em phải thực hiện theo layout yêu cầu backup bằng script các yêu cầu sau (em mới dùng linux nên chưa rành lắm)
I/BACKUP MAIL SERVER
Step 1: Backup the 4 database for MySQL. I am using the /root/iRedMail/tools/backup_MySQL.sh to do the backup.
Step 2: Backup /var/www/roundcubemail/config/*.inc.php (for using roundcubemail as webmail only).
step 3: Backup /var/vmail/* (your mail directory).
Step 4: Backup /etc/policyd.conf and /etc/policyd_sender_throttle.conf.
Step 5: Backup /etc/postfix/mysql*.cf.
Step 6: Backup /etc/dovecot-mysql.conf.
Step 7: Backup /var/www/roundcubemail/plugins/changepasswd/config.inc.php for the change password plugins
Step 8: Backup /etc/httpd/conf.d/awstats.conf for access of the awstats report.
II/Restore MAIL SERVER
1. Setup a new iRedMail server with the same configuration as the old server.
2. Restore the 4 database for MySQL. I am using the /root/iRedMail/tools/backup_MySQL.sh to do the backup.
3. Restore /var/www/roundcubemail/config/*.inc.php (for using roundcubemail as webmail only).
4. Restore /var/vmail/* (your mail directory).
5. Restore /etc/policyd.conf and /etc/policyd_sender_throttle.conf.
6. Restore /etc/postfix/mysql*.cf.
7. Restore /etc/dovecot-mysql.conf.
8. Restore /var/www/roundcubemail/plugins/changepasswd/config.inc.php for the change password plugins
9. Restore /etc/httpd/conf.d/awstats.conf for access of the awstats report.
em đã thử cách cơ bản là copy file ở các đường dẫn trên ra một nơi khác, như khi copy về vi trí ban đầu thì bị lỗi.
Anh em nào có kinh nghiệm về linux cũng như iRed mail xin hướng dẫn giúp em với. Em xin cảm ơn
|