jira的迁移
1.防止用户在备份期间访问Jira应用程序
1.更改端口
关闭所有Jira应用程序,将其配置为在其他端口上侦听并重新启动。通过编辑server.xml
文件来执行此操作。更改以下部分:
[root@61JiraServer ~]# vim /iflytek/atlassian/jira/conf/server.xml <Connector port="8080" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/> [root@61JiraServer ~]# ps -ef |grep jira root 7229 1 52 19:42 pts/0 00:09:45 /iflytek/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/iflytek/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms14g -Xmx20g -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Xloggc:/iflytek/atlassian/jira/logs/atlassian-jira-gc-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCCause -classpath /iflytek/atlassian/jira/bin/bootstrap.jar:/iflytek/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/iflytek/atlassian/jira -Dcatalina.home=/iflytek/atlassian/jira -Djava.io.tmpdir=/iflytek/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start root 7735 6977 0 20:01 pts/1 00:00:00 grep --color=auto jira [root@61JiraServer ~]# kill -9 7229 [root@61JiraServer jira]# rm -rf /iflytek/atlassian/jira/work/catalina.pid [root@61JiraServer jira]# /etc/init.d/jira start
2.使用Jira的XML备份实用程序
使用新的端口进到web界面
- 选择
- 选择“ 导入和导出”>“备份系统” 以打开“备份Jira数据”页面。
等待,这个时间可能比较长。出现下面这个表示备份成功
3.备份 安装目录 和 主目录。
您可以在<installation-directory>/atlassian-jira/WEB-INF/classes/jira-application.properties
文件中找到主目录的位置。
默认路径是:
视窗: C:\Program Files\Atlassian\Application Data\JIRA
Linux: /var/atlassian/application-data/jira
[root@61JiraServer atlassian]# cat jira/atlassian-jira/WEB-INF/classes/jira-application.properties # Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer. jira.home = /iflytek/atlassian/application-data/jira [root@61JiraServer atlassian]# scp -rp /iflytek/atlassian/application-data/jira/ root@172.31.184.174:/iflytek/jira-data