How to migrate a Bamboo instance with a large number of artifacts and build logs

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Performing a full export/ import of a Bamboo instance can be very time consuming depending on the amount of artifacts and build logs you have. If your current instance has grown too large and export/ import does not work, you can still migrate your instance by using an alternative backup and restore strategy.

Environment

Any supported Bamboo version.

Solution

The solution consists of manually moving artifacts and/ or build logs from the old (referred to as Source in this document) to the new (referred to as Destination in this document) Bamboo instance.

Source Bamboo instance

  1. Go to the Bamboo administration > Overview > System > Export page.
  2. Click the "Pause server" button.
    1. Attempting to export data may adversely affect currently running builds and result in inconsistent exported data. It is therefore recommended that you pause the server before running an export.
  3. Uncheck the "Export artifacts" and/ or "Export build logs" boxes to ensure your export file won't include artifacts and/ or build logs.
  4. Click "Export".

Bamboo will generate an export file containing an XML export of your Bamboo instance that does not contain artifact files and/or build log files, but contains everything else (e.g. plan configuration, deployment project, build plan results, and etc).

Destination Bamboo instance

  1. Go to the Bamboo administration > Overview > System > Import page.
  2. Provide the path to the export file generated in the previous section.
    1. Be careful not to check the "Apply imported data without server shutdown" box if this is production environment.
  3. Click "Import".

    Proceed with caution as the import process will delete your Bamboo instance. Once it has started you will not be able to cancel it.

  4. While the import is in progress manually copy/ transfer the following data (depending on whether you've chosen to manually migrate artifacts, build logs, or both):
    1. The <source-bamboo-shared-home>/artifacts folder to the <destination-bamboo-shared-home>/artifacts folder.
    2. The <source-bamboo-shared-home>/builds folder to the <destination-bamboo-shared-home>/builds folder.
  5. When the import process completes, restart Bamboo.

It's safe to restart Bamboo after the import process has finished even if the artifact and/ or build logs transfer has not completed yet. Just keep in mind that builds and/ or releases might fail if they depend on artifacts that have not yet been transferred to the destination Bamboo instance. If that happens you will have to wait for that particular artifact to be transferred and run the build and/or deploy your release again.

Last modified on Dec 16, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.