Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

tar bamboo-home folder

Reneesh Kottakkalathil
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 Leaders.
May 18, 2022

We're planning to upgrade Bamboo. One of the pre-requisite is to take a backup of the bamboo-home directory. However, the bamboo-home directory is so huge that tar will take longer and we don't have enough space for the tar backup. I'm looking for advise on how do you all manage this situation when performing an upgrade. 

1 answer

0 votes
Ronald Bolante May 20, 2022

Hi @Reneesh Kottakkalathil ,

You can create a backup of or archive ALL folders except the following:

  • artifacts
  • export (if it exists)
  • import (if it exists)
  • logs

You're going to perform an upgrade (and not a migration, for example) and the artifacts folder will still be there even if the upgrade fails. This does not mean you can delete that folder. You will need it in case you need to roll-back the upgrade.

I learned this from one of the Atlassian Support guys.

Hope that helps.

Reneesh Kottakkalathil
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 Leaders.
May 20, 2022

Hi Ronald,

Thanks for the inputs. Could you please send me the steps in the event of a rollback?

Ronald Bolante May 22, 2022

Hi @Reneesh Kottakkalathil ,

No worries, more than happy to share.

I think before I send you the steps I need to give the upgrade steps first to be clear about what needs to be done.

Upgrade steps:

  1. Create support zip
  2. Upgrade plugins that need upgrading
  3. Stop Bamboo service
  4. Create a backup of all folders except:
    • artifacts
    • export
    • import
    • logs
  5. Create a DB backup
  6. Do the Bamboo upgrade
  7. Start Bamboo service
  8. Upgrade plugins that need upgrading
  9. Conduct technical PIV

 

Rollback plan:

  1. Stop Bamboo service
  2. Restore the DB backup
  3. Point the symlink to old version
  4. Start Bamboo service

 

Hope this helps

Like Reneesh Kottakkalathil likes this
Reneesh Kottakkalathil
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 Leaders.
May 24, 2022

Thanks for the detailed steps. Don't we have to rollback the bamboo-home folder that we backed up(before upgrade) and copy back the folders(artifact, export,..)that we excluded?

Ronald Bolante May 24, 2022

Hi @Reneesh Kottakkalathil ,

Thank you for pointing that out.  Yes, you are right how can I miss that.

Here is the updated rollback plan.

Rollback plan:

  1. Stop Bamboo service
  2. Restore the DB backup
  3. Re-point the symlink to old version (bamboo-install)
  4. Restore backup of bamboo-home (Upgrade step #4)
  5. Start Bamboo service

 

I need to emphasise as well that I haven't had any chance of testing a rollback.  This is a recommendation from Atlassian Support.  I will get back to you once I get the chance to test it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events