Backing-Up Hudson-CI configration

A neat addition to your Hudson Continues Integration server, is the Hudson Backup plug-in.

If you are during a major change in your build configuration, backup your configurations and you can restore from the backup when / if needed.

It is just much more elegant then copying those XML file's and editing them by hand when in comes to restoring your configuration... believe me I've been there ... (tested with Hudson 1.327 and 1.335 which is one release since the latest).

 

The basic backup just backs up Hudson's configuration although you can also backup builds history & artifacts and more - please make sure to configure what the backup should actually pickup (see screen shot below), by default it only backs-up configuration files.

 

The plug-in is in it's early stages although quite adequate for simple tasks, if your interested the plug-in is planing on supporting:

  1. Speed improvement (it is pretty slow ...)
  2. Support Hudson launched via java -jar hudson.war
  3. Build history management (number of backup to keep, ...)
  4. Incremental backup
  5. Backup jobs individually
  6. Automatic backup file format detection on restore

Hudson CI Backup

 

Another important thing to note: Backup will restart Hudson so if you have any job's running Hudson will wait until they are complete in order to perform the backup.

 

An example backup output is listed below, this backup is a "configuration-only".

 

Hope you find this useful ...

.
|-- plugins
|   |-- backup
|   |   |-- META-INF
|   |   |   `-- maven
|   |   |       `-- org.jvnet.hudson.plugins
|   |   |           `-- backup
|   |   |-- WEB-INF
|   |   |   |-- classes
|   |   |   |   |-- META-INF
|   |   |   |   |   `-- services
|   |   |   |   `-- org
|   |   |   |       `-- jvnet
|   |   |   |           `-- hudson
|   |   |   |               `-- plugins
|   |   |   |                   `-- backup
|   |   |   |                       |-- BackupLink
|   |   |   |                       `-- utils
|   |   |   |                           |-- compress
|   |   |   |                           `-- filename
|   |   |   `-- lib
|   |   `-- images
|   |-- maven-plugin
|   |   |-- META-INF
|   |   |   `-- maven
|   |   |       `-- org.jvnet.hudson.main
|   |   |           `-- maven-plugin
|   |   `-- WEB-INF
|   |       |-- classes
|   |       |   |-- META-INF
|   |       |   |   |-- annotations
|   |       |   |   `-- services
|   |       |   `-- hudson
|   |       |       `-- maven
|   |       |           |-- FilteredChangeLogSet
|   |       |           |-- MavenBuild
|   |       |           |-- MavenModule
|   |       |           |-- MavenModuleSet
|   |       |           |-- MavenModuleSetBuild
|   |       |           |-- MavenProbeAction
|   |       |           |-- MavenTestDataPublisher
|   |       |           |-- RedeployPublisher
|   |       |           `-- reporters
|   |       |               |-- MavenAbstractArtifactRecord
|   |       |               `-- SurefireAggregatedReport
|   |       `-- lib
|   |-- scis-ad
|   |   |-- META-INF
|   |   |   `-- maven
|   |   |       `-- org.jvnet.hudson.plugins
|   |   |           `-- scis-ad
|   |   `-- WEB-INF
|   |       `-- classes
|   |           |-- META-INF
|   |           |   `-- annotations
|   |           `-- hudson
|   |               `-- plugins
|   |                   `-- scis_ad
|   |                       `-- ScisSupportOffer
|   |-- ssh-slaves
|   |   |-- META-INF
|   |   |   `-- maven
|   |   |       `-- org.jvnet.hudson.plugins
|   |   |           `-- ssh-slaves
|   |   `-- WEB-INF
|   |       |-- classes
|   |       |   |-- META-INF
|   |       |   |   |-- annotations
|   |       |   |   `-- services
|   |       |   `-- hudson
|   |       |       `-- plugins
|   |       |           `-- sshslaves
|   |       |               `-- SSHLauncher
|   |       `-- lib
|   `-- subversion
|       |-- META-INF
|       |   `-- maven
|       |       `-- org.jvnet.hudson.plugins
|       |           `-- subversion
|       `-- WEB-INF
|           |-- classes
|           |   |-- META-INF
|           |   |   |-- annotations
|           |   |   `-- services
|           |   `-- hudson
|           |       `-- scm
|           |           |-- SubversionChangeLogSet
|           |           |-- SubversionSCM
|           |           |   `-- DescriptorImpl
|           |           |-- SubversionTagAction
|           |           |-- browsers
|           |           |   |-- AbstractSventon
|           |           |   |-- CollabNetSVN
|           |           |   |-- FishEyeSVN
|           |           |   |   `-- DescriptorImpl
|           |           |   |-- Sventon
|           |           |   |   `-- DescriptorImpl
|           |           |   |-- Sventon2
|           |           |   |   `-- DescriptorImpl
|           |           |   |-- ViewSVN
|           |           |   `-- WebSVN
|           |           `-- subversion
|           `-- lib
|-- updates
`-- userContent
 

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com