====== 差别 ====== 这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
zh:实际案例指导:如何实现astercc系统的备份 [2015/05/14 10:08]
liuxl 创建
zh:实际案例指导:如何实现astercc系统的备份 [2017/12/12 03:05] (当前版本)
行 1: 行 1:
-====== ​How to perform asterCC system backup ​====== +======如何实现astercc系统的备份====== 
-<note tip>You need to ssh to your server for the following operation</​note>​ +<note tip>首先,你需要先ssh登录你的服务器,再进行以下操作</​note>​ 
-===== Database Backup ​=====+=====数据库备份=====
 <​code>​ <​code>​
-mysqldump -uroot -p astercc10 | gzip > astercc_db.sql.gz+ mysqldump -uroot -p astercc10 | gzip > astercc_db.sql.gz
 </​code>​ </​code>​
-System will prompt for database ​root password, you can find it in /​etc/​astercc.conf ​if you don't know. +系统会提示您输入数据库root用户的密码,如果你不知道的话,你可以通过查看 ​/​etc/​astercc.conf ​文件来获得。 
-<note warning>Note:If you see "​mysqldump:​ Got error: 2002: Can't connect to local MySQL server through socket '/​var/​run/​mysqld/​mysqld.sock'​ (2) when trying to connect"​,you should use <​code>​ mysqldump -h127.0.0.1 -uroot -p astercc10 | gzip > astercc_db.sql.gz </​code>​ </​note>​ +<note warning>注意:如果你看到如下提示:"​mysqldump:​ Got error: 2002: Can't connect to local MySQL server through socket '/​var/​run/​mysqld/​mysqld.sock'​ (2) when trying to connect"​,你可以试一下加个"​-h127.0.0.1"​,如下:<​code>​ mysqldump -h127.0.0.1 -uroot -p astercc10 | gzip > astercc_db.sql.gz </​code>​ </​note>​ 
-===== File Backup ​=====+=====文件备份=====
 <​code>​ <​code>​
-sudo tar czfP astercc_files.tar.gz /​etc/​asterisk /var/lib/​asterisk /​var/​www/​html ​/​opt/​asterisk/​scripts/​astercc /​var/​spool/​asterisk /etc/astercc.conf+ sudo tar czfP astercc_files.tar.gz /​etc/​asterisk /etc/astercc.conf ​/​opt/​asterisk/​scripts/​astercc ​/​var/​lib/​asterisk ​/​var/​spool/​asterisk /var/www/html
 </​code>​ </​code>​
-===== Download Backup files===== +=====下载备份文件===== 
-Now you have two files astercc_db.sql.gzip and astercc_files.tar.gz, you can download via ftp/​sftp ​tools, or move the file to http folder so you can download from browser+现在你有两个文件,即 ​astercc_db.sql.gz 和 astercc_files.tar.gz,你可以通过 ​ftp/​sftp ​工具来下载,或者用访问 ​http 地址方式来下载。
 <​code>​ <​code>​
-sudo mv astercc_files.tar.gz astercc_db.sql.gzip /​var/​www/​html/​asterCC/​app/​webroot/ ​+ sudo mv astercc_files.tar.gz astercc_db.sql.gz /​var/​www/​html/​asterCC/​app/​webroot/ ​
 </​code>​ </​code>​
-Then you can download by visiting+然后你可以通过“访问”方式来下载:
  
- http://your ip/​astercc_files.tar.gz+<​code> ​http://你的IP/​astercc_files.tar.gz 
 + ​http://​你的IP/​astercc_db.sql.gz </​code>​
  
-and+<note tip>​如果你使用的服务器系统是 CentOS,你还可以用以下方式下载:<​code>​ wget http://​你的IP/​astercc_files.tar.gz  
 + wget http://​你的IP/​astercc_db.sql.gz </​code>​ 
 +</​note>​
  
- http://your ip/​astercc_db.sql.gzip+<note important>​注意:在新服务器上还原系统备份前请,先参考原系统已安装的模块,先进行模块安装。<​/note>
  
-<note tip>If you use CentOS,you can download by "wget http://your ip/​astercc_files.tar.gz" ​ and  "wget http://your ip/​astercc_db.sql.gzip"​ </​note>​ 
zh/实际案例指导/如何实现astercc系统的备份.1431598123.txt.gz · 最后更改: 2017/12/12 03:11 (外部编辑)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki