コマンドラインで Confluence サポート Zip を作成する方法
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
When the Confluence web interface, the UI, is not working properly, running and getting the support zip is a challenge, requiring Confluence or a System administrator to collect log and configuration files by logging on the server where a Confluence node is running to retrieve them manually. To facilitate it, this solution aims to automatize the log/data search and packaging using the same structure the Support Zip tool provides beyond other benefits.
環境と要件
The solution runs in Linux based Operating System with:
/bin/bash
zip や gzip のアプリケーション
To run in Windows the OS might have:
- Powershell
It's also required by the system administrator:
Being familiar with the Operating System command line interface.
- Recognize the Jira Home and Jira Application folders.
- Recognize and have read permission on Confluence Home and Confluence Application folders (recommended root/Administrator or the Jira user if using Linux).
Attention when using Confluence Data Center with multiple nodes, the script shall be run in each node separately. Also, before running the scripts, ensure there is enough disk space on node-home/export for the data transfer and zip creation!
スクリプトとその用途
以降では、スクリプト、利用方法、期待される出力をまとめています。
Linux
Windows
For both Linux and Windows the support.zip
generated
<confluence-home>/export .
重要な注意事項
- This solution is not a substitute of UI Support Zip. If you have the chance to generate the support zip though the UI, please prefer to use it.
- This solution is not supported by Atlassian, and the performance of the UI may differ from the command line tool.
- Username and passwords are sanitized in confluence.cfg.xml, directoryConfigurationSummary (directories) and server.xml/tomcat-users.xml (tomcat configuration) when using Linux, for Windows it is still in progress. For this platform, you can sanitize them before sending to Atlassian.