【系统备份】

开启系统自动备份:平台管理 -> 系统设置 -> 自动备份

${安装目录}/auto_backup/${备份时间}.zip

 

【系统恢复】

  1. 将备份压缩包上传至服务器 /opt/iReport365/upload 目录中

    假设备份文件名和路径如下:

    /opt/iReport365/upload/2017_05_09_14_12_18.zip

     

  2. 执行下列命令:

    cd /opt/iReport365/
    ./stop.sh
    mv /opt/iReport365/app_home /opt/iReport365/app_home.20160601  //这里是当前日期,备份app_home目录
    mv /opt/iReport365/mongodb/data /opt/iReport365/mongodb/data.20160601   //这里是当前日期,备份data目录
    cd /opt/iReport365/upload/
    unzip 2017_05_09_14_12_18.zip
    cd 2017_05_09_14_12_18
    cp -R app_home /opt/iReport365/app_home
    cp -R mongodb/data /opt/iReport365/mongodb/data
    cp /opt/iReport365/app_home.20160601/license /opt/iReport365/app_home/license
    cd /opt/iReport365/
    ./run.sh