stash restore client--failing to restore DB

I tried using the stash backup client. The backup worked fine. I am facing issues while restoring.

I wanted to restore in a fresh directory and DB. A Empty DB is created and when i restore using the restore client, It gets restored and further following the steps I install a stash in a new directory.

The new stash is pointing to the directory on which i have restored my data. when i start stash and configure it and during the DB configuration it asks for an empty DB where as the DB is overwritten by the restore client.

Secondly when i un-tar the backed up tar (from the backup client) i do not see any DB dump or any file related to the DB

Also i want to know the procedure for Restoring.

The Restore procedure writes into the DB and according to the documentation we need to install stash,  whereas while installing stash it needs a Empty DB.Both the Restoring and installation contradict each other.


Also suggest if there is any Disaster Recovery plan for STASH.



1 answer

0 votes

If you've followed the restore instructions in the backup client documentation, the restore should have restored the database data to your empty database and should have created a file with the database connection details. 

Then when you start Stash, assuming you've configured STASH_HOME to point to the restored home, it should detect these settings and connect to the database. You should not see setup screens. You can check that Stash has connected to the correct database under Administration > Database.

With respect to Disaster Recovery, does High availability for Stash provide the information you're looking for?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

689 views 5 9
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