ExtMail的存储目录为 /home/domains
shell
查看domains目录下的邮件域:
shell
显示如下信息,表明domains目录下有一个extmail.org的域
drwx------ 5 vuser vgroup 4096 Aug 10 17:31 extmail.org
压缩邮件域:
shell
查看刚才压缩的文件
shell
rw-r--r-- 1 root root 5950 Aug 19 13:29 extmail.tgz
Mysql目录为/var/lib/mysql/extmail
连接mysql服务器:
shell
在系统提示”Enter password: “的后面输入密码
查看系统现存的数据库:
mysql指令
+-------------+ | Database | +-------------+ | extmail | | mysql | | test | +-------------+ 3 rows in set (0.09 sec)
备份extmail数据库到root目录
shell
# mysqldump -u root -p --opt extmail > /root/extmail.sql
查看备份文件
shell
EMOS1.5的安装在这里不再叙述,安装时记得建立你的域名,这里以extmail.org为例
还原邮件域:
把EMOS1.3的备份数据上传到EMOS1.5,这里上传的目录为/root
shell
查看解压的邮件域
shell
rw-r--r-- 1 root root 5950 Aug 19 16:04 extmail.tgz drwx------ 5 vuser vgroup 4096 Aug 10 17:31 extmail.org
Extmail的数据库还原
查看EMOS1.5的数据库:
shell
mysql指令
+-------------+ | Database | +-------------+ | dspam | | extmail | | mysql | | test | +-------------+ 4 rows in set (0.08 sec)
删除extmail数据库
mysql指令
Query OK, 5 rows affected (0.35 sec)
确定extmail数据库已删除
mysql指令
+-------------+ | Database | +-------------+ | dspam | | mysql | | test | +-------------+ 3 rows in set (0.01 sec)
重新创建extmail数据库
mysql指令
Query OK, 1 row affected (0.00 sec)
确定extmail数据库已创建
mysql指令
+-------------+ | Database | +-------------+ | dspam | | extmail | | mysql | | test | +-------------+ 4 rows in set (0.00 sec)
退出Mysql
mysql指令
恢复extmail数据库
shell
显示表的内容
shell
mysql指令
现在EMOS1.3的数据成功还原到EMOS1.5,邮件收发正常。