You can clone an existing Bamboo instance by getting a new Bamboo instance in the same version and using the setup of the existing one.
Alternative cloning scenario
If your current instance has grown too large and export/import does not work, you can still clone your instance by using an alternative backup and restore strategy.
The approach is to clone the <bamboo-home>
content and make it available to the new Bamboo instance:
- Stop the original Bamboo instance.
Create a backup:
embedded DB
external DB
Compress the original
<bamboo-home>
directory into a .zip file. The embedded database is included in the directory.- Compress the original
<bamboo-home>
directory into a .zip file. - Create a database backup with the native tools.
You can reduce the size of a compressed
<bamboo-production-home>
file by deleting thexml-data/build-dir
directory that contains working copies of the checked-out sources.For more information about migrating databases, see Moving your Bamboo data to a different database.
- Compress the original
- Restart the original Bamboo instance.
Install the same version of Bamboo on the new server.
If you are cloning a Bamboo instance on the same server, make sure that the new Bamboo instance doesn't have the same<bamboo-install>
installation path as the original Bamboo instance.- Transfer the compressed original
<bamboo-home>
directory to the new server where you installed the new Bamboo instance. - Replace the content of the new
<bamboo-home>
directory with the unzipped<home-directory> content
. On the new server, in the new
<bamboo-install>
directory, go towebapp/WEB-INF/classes/
and open thebamboo-init.properties
file.
In thebamboo-init.properties
<bamboo-home>
path.If you are cloning a Bamboo instance on the same server, make sure that the new Bamboo instance doesn't have the same
<bamboo-home>
path as the original Bamboo instance.- (External DB only) Create a new database for the cloned instance and import the external database backup.
In the new
<bamboo-home>
directory, open:- bamboo.cfg.xml
- xml-data/configuration/administration.xml
and change the server names/IP addresses according to the new location.
(External DB only) Go to the new
<bamboo-home>
directory, open thebamboo.cfg.xml
file, and enter the new database connection details and credentials.- Start the new Bamboo instance.
Next steps
- (Optional) You can upgrade the new Bamboo instance.
- If the new server has different locations for:
- JDKs
- Ant
- Maven
- Perforce
- Msbuild tools