Restoring Stash

Hi,

We have Stash 3.2.4 and are using stash backup client to backup/restore. We actually launch the backup client from a different server to backup stash. Wanted to know that in order to do a full restore (stash + the actual repositories), are the backup files (ex: stash-20150531-020133-772.tar' sufficient ? We did a test recovery using backup client on a completely new instance (new DB) and can see that all stash information (ex: repositories, data etc) have been restored but the actual repository data is missing. When I see /var/atlassian/application-data/stash/shared/data/repositories on the new server, it is all blank.

Would you please advise ?

 

Thanks.

1 answer

Hi Yasin,

All the information available for backing up and restoring Stash using the client can be found on:

Yes, the information on the tar contains the whole data (STASH_HOME and DB). It looks like you've restored it correctly. The data should be there.

One of the things that concerns me here is the following statement:

We actually launch the backup client from a different server to backup stash.

As described on the documentation above:

The Backup Client must be run from somewhere with access to the Stash home directory.

On the server where you are launching the backup from, how did you mount the Stash home there? Could you check if your repositories are available?

My theory is that the structure is available on the remote server but somehow not the data in the repos. You could also try running the backup client on the server where Stash is running, get the tar and restore it on the new server.

Let us know how you go.

Best,
Thiago Bomfim
DevTools Support

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

652 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot