スペースを復元する
Importing into an earlier version of Confluence
Importing spaces into earlier Confluence versions (for example taking a space exported from Confluence 5.9 and importing it into Confluence 5.4) is often not possible.
The Backup and Restore page in the later Confluence version will give you some indication of whether it is likely to be compatible, but if the exported space contains attachments you will not be able to import it into an earlier version due to changes to how attachments are stored.
Restoring a space from an XML backup
You can restore data from an XML backup file located somewhere on your local computer or a shared drive, or you can copy the XML file into the Confluence restore directory and restore it from there. We recommend the second option for large backup files.
To restore data from an XML backup located outside Confluence:
- Choose the cog icon , then choose General Configuration under Confluence Administration
- Choose Backup and Restore in the left-hand panel
- Choose Choose File and browse for the backup file
- Uncheck Build Index if you want to create the index at a later stage
- Choose Upload and Restore
To restore data from an XML backup located in your Confluence installation:
- Copy your XML backup zip file into the
restore
directory in your Confluence home directory. For example:- On UNIX:
/opt/java/src/confluence/deployments/conf.atlassian.com/home/restore
- On Windows:
C:\Program Files\Atlassian\Application Data\Confluence x.x\restore
- On UNIX:
- Choose the cog icon , then choose General Configuration under Confluence Administration
- Choose Backup and Restore in the left-hand panel
- Select the zip file that you copied in step 1 from the list of files under the heading Restore a backup from the Confluence Home Directory
- Uncheck Build Index if you want to create the index at a later stage
- Choose Restore
Workaround for restoring spaces from Confluence 5.3 and below
If you need to import a space from a version prior to Confluence 5.3, you can use a temporary Confluence installation to upgrade the space export to the right version number:
- Download the same version of Confluence as the version you exported the space from (you can get older versions of Confluence at the Confluence Downloads Archive)
- Install that version of Confluence on a temporary server
- Import the space into this temporary Confluence site
- Upgrade Confluence on your temporary site to the same version as the site where you want to import the space (see Upgrading Confluence for instructions)
- Export the space from your temporary Confluence site (it'll now have the right version number)
- Import the space into your production Confluence site