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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Docker: Backing up Confluence with Postgres Edited


I am having a hard time backing up Confluence & Postgres.


I am using docker-compose to startup a PostgresDB and afterwards Confluence.

This is from the docker-compose-file:

image: postgres:9.6.15-alpine    
- confluence_db_volume:/var/lib/postgresql/data    

image: atlassian/confluence-server:latest
container_name: confluence
#- confluence_config:/opt/atlassian/confluence/conf
- confluence_home_data:/var/atlassian/application-data/confluence
- db_confluence
- 8090:8090
restart: unless-stopped

external: false
external: false  
  #external: false


The original idea:

  • Start up the containers with docker-compose up -d
  • Initialize Confluence (enter License, connect to Postgres, create a user, create a dummy page)
  • Stop the containers (Confluence & Postgres)
  • Backup the Docker-Volumes (with the help of
  • Remove the stopped Containers
  • Remove the dangling Volumes
  • Restore the Docker-Volumes (with the help of
  • Recreate the containers with docker-compose up -d

-> NOT working at all :-( 

Then I thought maybe I need to backup "/opt/atlassian/confluence/conf" from the Confluence-container in a Docker-Volume as well -> Not working, again. Server doesn't even startup anymore (restarting (1)).


The last thing i tried desperatly:

After removing the volumes from the docker-compose-file and setting up Confluence I stopped the containers to back them up completely

 docker commit -p confluence confluence_backup

After spinning them up again, Confluence wasn't initialized and I had to start again.


Anyone experienced the same and can help me to properly backup & restore a running Confluence instance with Postgres?



1 answer

0 votes
Dave Chevell Atlassian Team Sep 05, 2019

You should only need to back up & restore the contents of $CONFLUENCE_HOME, i.e. /var/atlassian/application-data/confluence

All other configuration (i.e. server.xml / Tomcat) should be coming from the environment (documented on )

What exactly happens when you do this - what errors do you get, what appears in the log?

I did solve this problem by now.


Turns out that while restoring the volume with "" another _data-Folder into the recreated Volume (with the original contents in it) was added.

So I had to move the data in the recreated volume one directory up - et voila, the backup-restore process worked fine :-)


Thanks for your help though!

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

480 views 24 9
Join discussion

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