I've tested the backup client, is there a way to control how long the backup will take? Is there a benchmark figure for a 100gb set of repositories? If oracle data guard is used, can I run stash against the database copy? I am concerned about how long we lock out users as the size of the repos grow Thanks Mike Brosnan

1 answer

1 accepted

0 votes
Accepted answer

Stash doesn't store the actual repos in the database. All git repos are stored to disk in <STASH_HOME>/data.


data contains the Git repositories being managed by Stash

With all atlassian products, there are 3 pieces that must be restored

* isntall_directory (important for custom seraph, crowd, and other config)

* data_directory (repos, attachments, avatars, etc)

* database (projects, users, logins, settings, etc)

To speed up the disk based backup of STASH_HOME, I would suggest a utility like rsync *instead of the stash backup client* to inteliigently replicate only the difference/changes since the last backup. This will be much faster then the client which creates a full, new tar based on all the existing repos. Rsync uses compression as well and is intended to push the differences to a remote machine. So you can effectively maintain a "warm" standby instance using rsync in combo with data guard for the event of an outage/incident.

*Stash should be locked/shutdown during backups* You can't redirect users to a backup while one is down.

The DB backup should be very quick itself, as well as the install directory, as they will both remain small, even with 100+G of repos/.

In addition to Eddie's points, you might want to look at related answers floating around:



The important thing to keep in mind is that it's possible that you may only partially backup a repository if people are pushing updates. For example you might get an old pack file but new refs and the repository is now effectively "corrupted" if you try to restore.

We're currently working on improving the Backup experience to support rsync for faster backups, but it's too soon to announce anything yet.

Roger Barnes Atlassian Team May 26, 2014

Since Stash 2.12 there is now a "DIY Backup" option that lets you use the faster snapshot/sync tools that your database and filesystem provide. For more, see https://confluence.atlassian.com/display/STASH/Using+Stash+DIY+Backup

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

660 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