The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

stash.diy backup - what does it back up

Mark Ruedy
April 1, 2015

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mark Ruedy
April 1, 2015

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

 

0 votes
Mark Ruedy
April 1, 2015

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
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 Champions.
April 1, 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.

0 votes
Timothy
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 Champions.
April 1, 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. 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events