升级策略

Confluence升级是一项很细致的工作,也是一件专业的工作,着手升级需要做充分的准备。

 以下重点说明升级的步骤方法

重点关注

方案一

这种方法适用于Confluence数据量(页面及版本数)较少的情况

操作前请进行数据库备份

第一步

系统管理员登录到Confluence后台,进入到备份与还原菜单,进行如下操作

通过成备份包后,可以将此备份包进行迁出以备后续导入使用

方案二

这种方法适用于Confluence数据量较大的情况

操作前请进行数据库备份,应用备份

第一步

停掉旧Confluence应用

进入到安装程序所在目录,执行安装命令]# ./atlassian-confluence-7.x.x-x64.bin 

This will install Confluence 7.15.1 on your computer.

OK [o, Enter], Cancel [c]


Choose the appropriate installation or upgrade option.

Please choose one of the following:

Express Install (uses default settings) [1], 

Custom Install (recommended for advanced users) [2], 

Upgrade an existing Confluence installation [3, Enter]


Existing installation directory:

[/opt/atlassian/confluence]

一般会识别出原来旧版本的目录

Back Up Confluence Home
The upgrade process will automatically back up your Confluence Installation
Directory. You can also choose to back up your existing Confluence Home
Directory. Both directories are backed up as zip archive files in their
respective parent directory locations.

We strongly recommend choosing this option in the unlikely event that you
experience problems with the upgrade and may require these backups to
restore your existing Confluence installation.

If you have many attachments in your Confluence Home Directory, the zip
archive of this directory may consume a significant amount of disk space.
Back up Confluence home ?
Yes [y, Enter], No [n]

一般情况下,文件目录存放大量附件 ,在进行备份会占用较多资源和时间,建议提前进行备份,在这里选择不备份

Checking for local modifications.

List of modifications made within Confluence directories.

The following provides a list of file modifications within the confluence
directory.

Modified files:
        bin/setenv.sh
Removed files:
        (none)
Added files:
        confluence/WEB-INF/classes/log4j-diagnostic.properties
        lib/mysql-connector-java-8.0.22.jar

[Enter]

Checking if your instance of Confluence is running

Upgrade Checklist
Back up your external database
We strongly recommend you back up your Confluence database if you have not
already done so.

Please refer to the following URL for back up guidelines:
https://docs.atlassian.com/confluence/docs-715/Production+Backup+Strategy

Check app compatibility
Check that your non-bundled apps are compatible with Confluence 7.15.1.

For more information see our documentation at the following URL:
https://docs.atlassian.com/confluence/docs-715/Installing+and+Configuring+Plugins+using+the+Universal+Plugin+Manager


Please ensure you have read the above checklist before upgrading.
Your existing Confluence installation is about to be upgraded! Do you want to proceed?
Upgrade [u, Enter], Exit [e]

Your instance of Confluence is currently being upgraded.
Checking if Confluence has been shutdown...
Backing up the Confluence installation directory
                                                                           
Deleting the previous Confluence installation directory...

Extracting files ...
                                                                           

Please wait a few moments while we configure Confluence.

Installation of Confluence 7.15.1 is complete
Start Confluence now?
Yes [y], No [n, Enter]

一般安装完成后,并不马上启动,此时需要调整setenv.sh文件的配置,比如内存大小等相关信息,以及对需要修改的涉及到文件检查 列表中所列文件修改。

启动Confluence过程是一个漫长的过程,首先需要Confluence正常启动

在启动起来后期,Confluence会自动链接到数据库,执行升级程序将数据库进行版本升级

这些启动和升级过程的日志可以在Confluence的文件目录下找 logs/atlassian-confluence.log中查看到。


注意:

升级是采用整个站点的导入,在导入整个站点的数据将全部以导入备份的数据,原数据将全部丢失,包括附件

在升级过程中如果中途失败,那么整个站点将无法正常工作,数据清掉数据库重新进行初始化工作

恢复过程中可能出现很多过程,可以到https://confluence.atlassian.com/confkb 来进行检查

有其它的升级方案,但本次提供的升级方案更安全、影响更小,如使用其它方案,请到官网进行查询