Confluence home directory backup: What directories are safe to exclude?

By reading the atlassian confluence administration pages and several answers here, I understand that the best practice confluence backup is to:

  1. Backup the database using a native DB backup tool (e.g. pg_dump for postgreSQL);
  2. Backup the home directory separately.

The atlassian backup pages refer to "backing up the entire confluence home directory". However over time this directory accumulates lots of stuff that seem unnecessary to backup (e.g. temp, backups, index, plugins-cache, etc.) which needlessly increase backup size.

From what I've read I gather that most of the stuff in the excluded directories gets re-created when confluence is restarted (e.g. the plugin-related folders) and the indexes and thumbnails can be recreated on demand via the administration UI).

Could someone please confirm that it is safe to exclude the following directories from the confluence backup directory? (I couldn't find a definitive answer anywhere hence the question)

  • (home directory path)/attachments: INCLUDE
  • (home directory path)/backups: EXCLUDE
  • (home directory path)/bundled-plugins: EXCLUDE
  • (home directory path)/config: INCLUDE
  • (home directory path)/confluence.cfg.xml: INCLUDE
  • (home directory path)/index: EXCLUDE
  • (home directory path)/logs: EXCLUDE
  • (home directory path)/plugins-cache: EXCLUDE
  • (home directory path)/plugins-osgi-cache: EXCLUDE
  • (home directory path)/plugins-temp: EXCLUDE
  • (home directory path)/restore: EXCLUDE
  • (home directory path)/temp: EXCLUDE
  • (home directory path)/thumbnails: EXCLUDE
  • (home directory path)/viewfile: EXCLUDE

Thanks in advance.

1 answer

1 accepted

4 votes
Accepted answer

As mentioned on Backuping Confluence - I exclude ['logs', 'backups', 'restore', 'temp', 'viewfile', 'oscache', 'plugin-cache', 'plugins-temp'] and I know that works. I would guess bundled-plugins could be excluded. Index can be rebuilt, but it takes time - so that is a tradeoff. I would guess thumbnails would be regenerated too.

Thanks Bob. Much appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

976 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you