Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Postgresql database removed, what can be restored

Julien Ganichot
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2015

I'm running the latest versions of confluence, jira and stash on my server. Unfortunately somebody completely removed the postgrsql server including the data in /var/lib/postgresql.

What can be restored? How do I set up a new database without removing the home directories? 

2 answers

1 vote
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2015

Hi team,

If you have an old backup of Postgres Confluence database, you can also reinstall the postgres and restore it by using this command:

psql -h database_host -p database_port -U  database_user schema_name < C:\backup_file.dmp

I hope this helps!

Cheers,

Rodrigo

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2015

Not a lot.

If you had the backup services installed (they're on by default), then you should have .xml files in the applications home directories, so you could install new versions of them and restore the xml - you'll need the attachments directories too.  But that's about it if you've lost the databases - you're mostly starting from scratch.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events