The instructions on this page describe how to import data from a Bamboo backup.

Before you begin:

  • Bamboo will be unavailable until the import process is complete, which may take some time.
  • The import process will delete your Bamboo installation and restore data from a previous export of Bamboo. This includes login data, so you will need to know an administration login in the Bamboo data to be imported.
  • If you created your backup file using Bamboo 3.2 or later, importing the file will restore your user management settings. If you created your backup file using Bamboo 3.1 or earlier, importing the file will default your user management settings to 'Local users and groups' (i.e. user/group management in Bamboo). You may need to change your settings after the import.
  • If you manage users externally (using LDAP or Crowd) and the Bamboo internal user repository (in the backup file) contains user names that duplicate user names in the external repository, you will not be able to import from the backup file.
  • Backup Directory Path: Bamboo restricts the editing of certain file path settings for security reasons (see Bamboo Security Advisory 2010-05-04). If you must configure Bamboo to permit modification to its file path settings, start Bamboo with the system property bamboo.paths.set.allowed=true. The procedure for configuring a Bamboo system property is described on Configuring system properties.
    Once you have configured your file path setting, we recommend removing or disabling the bamboo.paths.set.allowed system property and restarting Bamboo. If your Bamboo instance is accessible to anyone outside your organisation, then this will minimise the risk of Bamboo being compromised by security-related attacks.

To import data from backup:

  1. Click the  icon and select Bamboo admin.
  2. Click Import in the left navigation column (under 'System').
  3. Complete the following settings:

    File PathThe absolute path to the data file that Bamboo should import. For example, "/opt/bamboo/bamboo-home/export.zip" on UNIX-based operating systems.
    Backup dataHighly recommended. Bamboo will not import data unless it is able to successfully export data first.
    Backup Directory PathThis can be configured – see the note above.
    File NameThe file to which Bamboo will export its data.
    Clear artifact directoryDelete all existing build artifacts before the import.
    Apply imported data without server shutdownNot recommended in a production environment.
  4. Click Import.
  5. After the import is complete,

Screenshot: Importing data from a backup


 

5 Comments

  1. Anonymous

    Hi,

    I've been testing export/import features and have the following issue:

    • Unzip Bamboo 4.0 bundle.
    • Make an express installation with bundled database (Hypersonic).
    • Log in as admin
    • Create a plan, and run a build 
    • Make an export
    • Run another build
    • Import the previous export

    After restarting Bamboo everything looks fine, the plan appears with only one build having been executed, however, my admin user has lost all of its administration permissions...so I can do nothing else than re-running that plan and generate reports...in other words, my Bamboo installation has become almost useless...

    By reading this wiki looks like exporting and importing is enough to restore a previous backup...is it needed to backup/restore any other thing such as bamboo home directory?

     

    Thanks in advance.

  2. Anonymous

    I have a similar problem when importing into 3.3.4

  3. ArmenA

    Sometimes for old Bamboo versions the import process cannot clean all the data from an existing database (when overwriting). That's why please drop the old database and create a new one before importing an archive into a fresh Bamboo instance. (Make sure that you have a backup of the database before dropping it).

    1. Kyle

      I would expect the backup and restoration to be similar to other Atlassian products, simple and easy without needing to dump the database. Looks like this is a huge lack luster.

  4. Kyle

    Removed duplicate post.