TechBuzzPro

How to Backup Confluence: Step-by-Step Guide

· 5 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Backing up Confluence creates a complete copy of your wiki data, including pages, attachments, user permissions, and space configurations, which you can restore if data is lost due to corruption, accidental deletion, or system failure. This process requires administrative access and should be performed regularly as part of your disaster recovery plan.

What You'll Need

  • Administrator access to your Confluence instanceAccess to the server where Confluence is hosted (for server/Data Center) or admin console access (for Cloud)
  • Sufficient disk space to store the backup file (approximately the size of your current Confluence home directory plus database)
  • Database access credentials (if performing a manual database backup)
  • Optional: Third-party backup tool or script if automating the process

Step-by-Step

  1. Log in to Confluence as a system administrator. Navigate to the admin console by clicking the gear icon in the top-right corner and selecting "General Configuration" under "Administration".
  2. In the left-hand sidebar, under "Backup and Restore", click "Backup Manager". Note: Menu labels may vary slightly depending on your Confluence version (e.g., 7.x vs 8.x), but the core path remains consistent.
  3. On the Backup Manager page, you will see two options: "Generate backup now" and "Schedule automatic backups". For an immediate backup, click "Generate backup now".
  4. Choose the type of backup: "XML backup" (includes all spaces, user data, and attachments) or "Space export" (for individual spaces). For a full system backup, select "XML backup".
  5. Optionally, check the box to "Include attachments" if you want to ensure all files attached to pages are included in the backup. This is recommended for a complete restore.
  6. Click "Create backup". Confluence will begin the backup process, which may take several minutes to over an hour depending on the size of your instance. Do not navigate away or restart the server during this time.
  7. Once completed, you will see a confirmation message with a link to download the backup file. The file will be named in the format "backup-YYYY-MM-DD-HH-MM.zip" and stored in the Confluence home directory under "backups/".
  8. Download the backup file to a secure, off-server location immediately. Best practice is to store it in a separate geographic location or cloud storage (e.g., AWS S3, Azure Blob) to protect against server failure.
  9. Verify the backup integrity by checking the file size and attempting to list its contents (e.g., using unzip -l backup-file.zip on Linux or extracting it locally). A valid XML backup should contain an "entities.xml" file and a "attachments/" directory.
  10. (Optional) To automate backups, return to the Backup Manager and click "Schedule automatic backups". Set the frequency (daily, weekly), time, and retention policy (e.g., keep last 7 backups). Ensure the backup directory has sufficient space and permissions for the Confluence process to write files.

Common Mistakes

  • Assuming the backup is complete without verifying the file contents — always check that entities.xml and attachments are present.
  • Storing backups only on the same server as Confluence — if the server fails, both the live data and backup are lost.
  • Forgetting to include attachments — this results in a backup that restores pages but loses all uploaded files, images, and documents.
  • Running backups during peak usage hours — this can degrade performance for users; schedule during off-peak times.
  • Not testing the restore process — a backup is useless if you cannot recover from it; perform a test restore quarterly.

Tips

  • Use Confluence’s native XML backup method for full fidelity; avoid relying solely on file-system snapshots or database dumps unless you are certain of the consistency (requires application quiescence).
  • For Confluence Cloud, use the "Site export" feature under "Settings" > "Backup Manager" — note that Cloud backups are initiated by Atlassian on a schedule, but you can request a manual export.
  • Encrypt backup files before storing them off-site to protect sensitive data in case of storage breach.
  • Document your backup and restore procedure in a runbook stored outside Confluence (e.g., in a secure wiki or shared drive) so it’s accessible during an outage.
  • Monitor backup success via logs: check atlassian-confluence.log for entries like "Backup completed successfully" or errors during the process.

Troubleshooting

If the backup fails to generate:

  1. Check available disk space in the Confluence home directory — backups require temporary space equal to roughly twice the size of your instance during creation.
  2. Review the application logs (atlassian-confluence.log) for errors such as "Unable to write to backup directory" or "Database connection failed".
  3. Ensure the Confluence process has write permissions to the backups/ directory.
  4. If using a proxy or load balancer, verify that the admin console is accessible and not timing out during long backup operations.
  5. For large instances, increase the JVM timeout settings if the backup is being killed due to exceeding HTTP request limits (consult your reverse proxy or Tomcat settings).
  6. If the backup completes but the file is corrupted, try generating it again — intermittent database locks or network issues can cause incomplete XML output.
  7. As a last resort, use the database dump utility (e.g., pg_dump for PostgreSQL or mysqldump for MySQL) combined with a file-system copy of the attachments/ directory, but only if you have stopped Confluence first to ensure consistency.

Frequently Asked Questions

How often should I back up Confluence?

For most organizations, daily backups are recommended, with weekly full backups and monthly off-site copies. Adjust based on data change frequency and regulatory requirements.

Can I back up Confluence Cloud?

Yes, Atlassian performs automatic daily backups, but you can also initiate a manual site export via Settings > Backup Manager > Site export. Note: Cloud backups cannot be downloaded on a fixed schedule; you must request them manually.

What is the difference between an XML backup and a space export?

An XML backup includes all spaces, users, groups, and global settings. A space export only includes one space’s content and is useful for migrating or archiving specific projects.

Do I need to stop Confluence to take a backup?

No — Confluence’s built-in XML backup uses hot-copy technology and does not require downtime. However, for file-system or database-level backups, you must stop the application to ensure consistency.

Where are backups stored by default?

By default, backups are saved in the <confluence-home>/backups/ directory. You can change this path in confluence.cfg.xml using the backup.dir property, but this requires a restart.