Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence database has become too large


We have been using confluence for a long time (since 2018). Initially, the size of the backups was about 400 MB. But at the moment on July 22, 2021, the backup size is more than 2 GB.

There are a lot of pages and sections, and manually deleting attachments is a very long and inconvenient process.
Please tell me if it is possible to automatically delete all old versions of attachments / pages. Or are there other options to make the backup size smaller?

2 answers

0 votes
Benjamin Community Leader Jul 21, 2021

@ib_sakh :


I would start checking your logs and backup directories to see anything to delete there before deleting confluence data. If not careful, the backups will contain the previous backups. What ends up happening, you may end up with a bunch of backups of backups. 


There's also the option of just backing up your DB and the rest of the filesystem directories and exclude the attachment directory. Then sync your attachment directory to another location so that if the attachments are can always copy them back from the other server.


Hope this helps

0 votes
Daniel Ebers Community Leader Jul 24, 2021

Hi @ib_sakh

am I getting it correctly your concern is mainly about the size of the database (or better database dump)?

Which database are you using (MySQL / PostgreSQL / ...)?
Some databases tend to now release space (even if content is deleted) - called sometimes 'bloat'.
Especially seen on MySQL when they say dumping the database and restoring it back could fix this specific architectural circumstace.

If you meant to include file system to your question I would question first where the biggest amounts of data reside. Attachments? Logs? Temporary data of any kind?

In case you could give more information surely Community members are able to go more into detail.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

458 views 18 15
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you