...
将备份压缩包上传至服务器 /opt/iReport365/upload 目录中
假设备份文件名和路径如下:Code Block language bash linenumbers true /opt/iReport365/upload/2017_05_09_14_12_18.zip
执行下列命令:
Code Block language bash linenumbers true 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
...