stash.diy backup - what does it back up

https://confluence.atlassian.com/display/STASH/Using+Stash+DIY+Backup

The above page bullet items listing what is backed up.  The second item is 'Managed Git Repositories' but I don't see where the repositories are being backed up or where you are supposed to put such code.

 

3 answers

0 votes
Timothy Chin Community Champion Apr 01, 2015

In once sentence, more or less everything. It does the DB and the home directory which contains the repositories. Read the rsync script to know what is not backed up in the home directory. The vars script defines where the archive location is. 

Our git repository is not in the atlstash home directory.  So are the git repositories being backed up via this curl command?

.STASH_BACKUP_RESULT=`curl -s -f ${STASH_HTTP_AUTH} -X POST -H "X-Atlassian-Maintenance-Token: ${STASH_LOCK_TOKEN}" -H "Accept: application/json" -H "Content-type: application/json" "${STASH_URL}/mvc/admin/backups?external=true"`

What mechanism does this use?  Is it 'git bundle' ?  Can I see the code that is run here?

Timothy Chin Community Champion Apr 01, 2015

I am puzzled as to why your Stash repositories are not stored in your Stash home directory (https://confluence.atlassian.com/display/STASH/Stash+home+directory). If they are not, then most probably no. If you want to know what the code does, download the source code and check it out I guess.

Oh, that Stash Home Directory.  My mistake with the terminology.  I also have a user named atlstash, who's home directory is separate from stashdata, but both are owned by atlstash.

Anyway, I don;t believe I can view the source yet as I am still in evaluation (https://www.atlassian.com/licensing/purchase-licensing#source-2)  But I would like to know some details of the backup procedure, if possible.

Thanks

Mark

 

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...

649 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