Restoring a Space

You can export a space – including pages, comments and attachments – to a zip that contains an XML file and, optionally, all the attachments in the space. To import the space to another Confluence site, restore the zip as described below.

You need System Administrator permissions in order to restore a space from an XML zip file.

Export and import compatibility

To find out which versions your current Confluence version can accept space exports from, go to   > General Configuration  >  Backup and Restore .

If you need to import a space from Confluence 5.3 or earlier, you'll need to follow a workaround

On this page:

Related pages:


You can't import into an earlier version of Confluence.

For example, if you export a space from Confluence 5.9, you can't import it into Confluence 5.5. 

If your export is from Confluence Cloud, you can only import it into Confluence 6.0 or later.

Importing a space from an XML backup

There are two ways to import a space – by uploading a file, or from a directory on your Confluence server. Uploading a file is only suitable for small spaces. For best results, we recommend importing from the restore directory. 

(warning) We recommend performing a full backup of your database before importing a space. Occasionally the space import process may fail, and a backup will make it easier for you to roll back. 

To upload and import a small space:

  1. Go to  > General Configuration > Backup and Restore
  2. Click Choose File and browse for your space export file.
  3. Uncheck Build Index if you want to create the index at a later stage.
  4. Choose Upload and Restore

To import a space from the restore directory: 

  1. Copy your space export file to <confluence-home>/restore. 
    (If you're not sure where this directory is located, the path is listed in the Backup and Restore screen)
  2. Go to  > General Configuration > Backup and Restore.
  3. Select your space export file under Restore a backup from the Confluence Home Directory.
  4. Uncheck Build Index if you want to create the index at a later stage.
  5. Choose Restore.

Building the index is optional during the import process. The content of your imported space won't be searchable until the index is created, but, if you have a very large site, rebuilding the index can take a long time and impact your site's performance. Alternatively, you can rebuild the index manually at a low peak time.


If you have problems importing a space, check out these hints. 

  • Is your file too large to upload? 
    This is a very common problem. It happens when the file can't be uploaded to the server in time. To avoid this problem, drop your export file into the <confluence-home>/restore directory and import it from there. 
  • Are you trying to import into an earlier version of Confluence?  
    This is not possible. You can only import a space into the same version or a later compatible version. 
  • Is your space export file from Confluence Cloud? 
    You can only import this file into Confluence 6.0 or later. Trying to import into earlier versions can cause major problems.  
  • Does a space with the same space key already exist? 
    Space keys are unique, so if you already have a space with the same key, you'll need to delete the existing space before importing the new one.
  • Is the import timing-out or causing out of memory errors? 
    If the space to be imported is very large, you may need to temporarily increase the memory available to Confluence. See How to fix out of memory errors by increasing available memory.
  • Did you download the export file on a Mac?
    If you get an error saying that Confluence can't find the  file, chances are OS X has unzipped the backup for you and sent the original zipped file to the trash. You need to retrieve the original zip file from the trash and then try the import again.
  • Did your import fail?  Sometimes importing a space may fail because the process times out or runs out of memory. This can lead to data being left behind in your database. See After a failed space import, it's not possible to re-import because of leftover space data for more information. 

Workaround for restoring spaces from Confluence 5.3 and earlier

If you need to import a space from a version prior to Confluence 5.3 into a later version of Confluence, you can use a temporary Confluence installation to upgrade the space export to the right version number:

  1. 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).
  2. Install that version of Confluence on a temporary server.
  3. Import the space into this temporary Confluence site.
  4. 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).
  5. Export the space from your temporary Confluence site (it'll now have the right version number).
  6. Import the space into your production Confluence site.
Last modified on Oct 18, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.