stash upgrade from 2.x to 3.x

Hello,

I am planning to upgrade Stash from 2.4.1 to 3.3. I am using SQL server database.

As the Stash-backup-client is only supported starting from Stash 2.8, I have to manually backup Stash data, then upgrade Stash.

Is there any consideration before this upgrade? and how a rollback can be done in case issues with the upgrade.

 

Thank you, 

2 answers

Just backup your current home directory and the database. If something fails while upgrading, then you can just copy back the old home directory and the database and everything is fine smile

0 vote

Hi Soumia,

What Lars mentioned is correct. I'd just like to comment on a few points on this thread.

  • The backup client was launched on a beta version with Stash 2.7. So that release can be backed up using the backup tool.
  • As described on our Data recovery and backups document: "strategies for backing up and restoring Stash data must keep the repository data and the database perfectly synchronised". Hence:
    • Before backing up the your $STASH_HOME and database, please make sure you stopped your instance.
    • Restore procedure: just restore your database and $STASH_HOME as described using your own tools (the file system can be a simple cold copy and the database should be backed up using your vendor's recommended tool). From here, all you have to do is to download the binary on the machine you intend to restore your instance, on the same release as you had before and simply update the value of STASH_HOME in the <Stash installation directory>/bin/setenv file to point to your restored Stash home directory. If you want more details on how to manually install Stash, please refer to Install Stash from an archive file.

I hope this is helpful.

Best regards,
Thiago Bomfim
Atlassian Support

 

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

23,449 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