How to create Jira Support Zip via command line
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
When Jira web interface, the UI, is not working properly, running and getting the Support Zip is a challenge, requiring Jira or the System administrator to collect logs and data from the Operating System.
To facilitate it, this solution comes 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.
- Have read permission on Jira Home and Jira Application folders (recommended root/Administrator or the Jira user if using Linux).
Attention: when using Jira Data Center with multiple nodes, the script shall be run in each node separately and the home folder refers to the Jira home from the node (not the shared home folder). Also, before running the scripts, ensure there is enough disk space on node-home/export for the data transfer and zip creation!
スクリプトとその用途
Below you may find the scripts, usage, and real examples for Linux and Windows.
Linux
Windows
For both Linux and Windows the support.zip generated file will be placed at <jira-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 dbconfig.xml (database), directoryConfigurationSummary (directories) and server.xml/tomcat-users.xml (tomcat configuration).