Section |
---|
Column |
---|
| Include Page |
---|
| _hostedNotApplicableNote |
---|
| _hostedNotApplicableNote |
---|
|
|
|
1. Disabling email sending/receiving
If you are restoring production data into a test JIRA instance for experimentation purposes, you probably want to disable JIRA's email interaction features before you begin:
- Disable email notifications — if JIRA is configured to send emails about changes to issues, and you want to make test modifications to the copy, you should start JIRA with the
-Datlassian.mail.senddisabled=true
flag. - Disable POP/IMAP email polling — if JIRA is configured to poll a mailbox (to create issues from mails), you will likely want to disable this polling on your test installation. This is done by setting the
-Datlassian.mail.fetchdisabled=true
flag.
Exactly how to set these flags is dependent on your particular application server, but for JIRA Standalone (i.e. Tomcat), it is done by setting the JAVA_OPTS environment variable before starting JIRA:
Code Block |
---|
set JAVA_OPTS="-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true"
cd bin
startup.bat |
You could also try un-commenting the JAVA_OPTS="-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true
line from your /bin/setenv.sh
file and then running startup.
Anchor |
---|
| restorexmldata |
---|
| restorexmldata |
---|
|
2. Restoring XML data
Note: these instructions assume that you are restoring an XML backup. If you used native database tools to create your backup, the restore process will be tool-specific so these instructions do not apply to you.
- Log in as a user with the 'JIRA System Administrators' global permission.
- Select 'Administration' > 'System' > 'Import & Export' > 'Restore System' (tab) to open the 'Restore JIRA data from Backup' page.
Keyboard shortcut: 'g' + 'g' + type 'rest'
- In the 'File name' field, type the file name of the zipped XML backup file generated by JIRA.
Ensure that this backup file has been moved or copied to the location specified below this field. - The Index Path field indicates where JIRA will restore the search index data from the zipped XML backup file. This location (which cannot be modified) matches the index path specified in the zipped XML backup file. If, however, this backup file does not specify an index path, JIRA will restore the search index to the
caches/indexes
subdirectory of the JIRA Home Directory.
Please Note:- The contents of the index directory may be deleted by the restore process.
- The index directory should only contain JIRA index data.
- Click the 'Restore' button and wait while your JIRA data is restored.
Once the data has been restored, JIRA will inform you that you have been logged out. This happens because all JIRA users which existed in JIRA prior to JIRA's data being restored will have been deleted and replaced by users stored in the JIRA export file.
It is recommended that you avoid passing through a proxy when performing an XML restore, especially if your JIRA instance is very large. Using a proxy may cause timeout errors.
Anchor |
---|
| restoreattachments |
---|
| restoreattachments |
---|
|
3. Restoring attachments
If you created a backup of the attachments directory, you will need to restore the backup into a directory where JIRA can access it.
If you use a custom directory for storing your attachments, ensure that JIRA has read and write permissions to this directory and its subdirectories.
The process of restoring the attachments backup depends on the way it was created. Usually you can use the same tool to restore the backup as the one that was used to create it (see Backing up attachments).
If you are restoring the attachments into a different location (i.e. a different directory path) from where they were previously located (e.g. this will be the case when moving servers), please follow the instructions provided in Configuring attachments to change the location of the attachments directory so that JIRA can find the restored attachments.