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

This widget could not be displayed.

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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

567 views 7 6
Join discussion

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