Restoring a Site

This page describes how to restore data from an XML site export file into an existing Confluence site.  

If you want to import data into a new site, see restoring from backup during setup.

You need System Administrator permissions in order to perform this function.

Importing a site export file will:

  • Overwrite all existing Confluence content in the database. Back up your database before you start.
  • Log you out of Confluence. Make sure you know the login details contained in the file you're about to import.

Before you start:

  • All content replaced. Importing a site will replace all your content and users. Back up your database before you start.
  • Selective space restoration not possible. You can't select a single space to restore from the entire site backup when the backup contains more than one space.
  • Version compatibility. Confluence accepts site backups from many previous Confluence versions. You can check which versions are accepted in the Backup and Restore screen. You can only import into a later version of Confluence, not an earlier one.

  • For best results, export from and import into the same Confluence version. 

  • XML export files should not be used to upgrade Confluence. Upgrade Confluence by following Upgrading Confluence.

Check your export is compatible

To check that your site export can be successfully restored:

  1. Start up the Confluence site you'll be importing into.
  2. Go to  > General Configuration > Backup and Restore
  3. Check the accepted Confluence version - it's listed under Upload and restore a site/space backup.

    Here's what it looks like for Confluence 5.9. The accepted versions for your Confluence version may be different. 

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

For example, if your site export was generated 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 5.10 or later.

Import a Confluence site

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

To upload and import a small site:

  1. Go to  > General Configuration > Backup and Restore
  2. Choose Choose File and browse for the site 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 site 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 site 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 site won't be searchable until the index is created, but if you have a very large site, you may choose to rebuild the index manually after the import is complete.

Troubleshooting

If you have problems importing a site, 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 site into the same version or a later compatible version. 
  • Is the import timing-out or causing out of memory errors?  
    If the site to be imported is large, you may need to temporarily increase the memory available to Confluence. See How to fix out of memory errors by increasing available memory
  • Is your username or password not recognised? 
    All user data was overwritten during the import process. You need to log in with a system administrator account from the site that was exported. If you don't know the password, you'll need to reset it from the database. See Restore Passwords To Recover Admin User Rights.
  • Is your site export from Confluence Cloud?
    You can only import into Confluence 5.10 or later. The username and password for the system administrator account will be sysadmin / sysadmin. As soon as the import is complete, you must change this password. See Migrate from Confluence Cloud to Server
  • Did you download the export file on a Mac?
    If you get an error saying that Confluence can't find the exportDescriptor.properties 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. 
 

Note about using site exports as backups

  • Production backup strategy preferred. We recommend that you follow the Production Backup Strategy (which involves backing up your database and home directory) for your production Confluence site, because Confluence XML exports are not recommended as the sole backup mechanism. 
  • Restoring from other backups. If your daily backup zip files can't be restored for some reason, but you have backups of both your database and your Confluence home directory, you'll be able to restore from these backups.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport