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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,358 views 26 12
Join discussion

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