Can I back up Conflunce through SSH

Good day to all,

We're currently suffering a major catastrophe, we cannot access the confluence URL and we cannot back up the files

Question 1.) can we back-up the confluence use SSH?

Question 2.) can we use the backed-up data to rebuild a new confluence sever?

1 answer


Questions 1.):

Yes, XML backup in Confluence is not the only backup option.

You can create DB backup on database application.

Are you using PostgreSQL database?

Questions 2.):

a) You should migrate CONFLUENCE_HOME folder and CONFLUENCE_INSTALL folder + DB backup to new confluence server.

b) Create new DB  and migrate DB backup into new DB.

c) If you change the location CONFLUENCE_HOME, you should change PATH in CONFLUENCE_INSTALL/confluence/WEB-INF/classes/ to CONFLUENCE_HOME folder.

Yes, we are using PostgreSQL, how will we back up the DB? pg_dumb is not working.


We have migrated the confluence from Linux to windows, the problem is the migration of PostgreSQL DB. :(

pg_dumb is wrong. pg_dump is correct.

Maybe you are not configured PATH to pg_dump on alternatives.

You should create new folder with access

chmod -R 777 new_folder

You should start pg_dump on

cd  /usr/pgsql-X.X/bin/

You should go to postgres user:

su postgres

Create db backup:

./ pg_dump -U dbrole dbname -f PATH_NEW_FOLDER/filename.sql

Sorry my bad, anyways when I go to Postgres user this message appeared :



any idea what is it?

thanks @MoroSystems Support

It is correct. You are postgres user in OS.

Now you do it:
   cd  /usr/pgsql-VERSION_POSTGRES/bin/

   ./pg_dump -U dbrole dbname -f PATH_NEW_FOLDER/filename.sql

Please check  PostgreSQL client programs:

yum info postgresql.x86_64

"Permission denied" means your account does not have the right to run it.

You need to talk to your server administrators about granting that permission to it,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

481 views 3 18
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