Realtime mirroring Stash instance to backup/failover instance

We used rsync, but it probably make wrong coping on high loaded and large repos. If you did not stop Stash, then rsync possible lost some internal data of git withint Stash. For example, some opened Pull Requests will broken after new Stash instance started. It will complain about merge-base, will reject sha1 hash as unknown, etc.

Is there any ways to perform hot backup on fly? Someone get it worked? Does someone used File Systems with snapshots support?

We perform rsync every one minute, and we used innobackupex database engine for mysql.

1 answer

1 accepted

2 votes
Answer accepted
Roger Barnes Atlassian Team Dec 03, 2013

At any given moment Stash can have active git, filesystem and database operations. Because of this, a clean hot-backup is not currently possible, even with filesystem snapshots. We intend to produce some better documentation and minor tweaks to the current backup-client based solution to allow for DIY backups with minimal downtime.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

190 views 0 12
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