Backup Plugin

Plugin Information

Plugin ID backup
Latest Release 1.5
Latest Release Date Jul 01, 2010
Changes via Fisheye In Latest Release
Since Latest Release
Maintainer(s) n/a (id: F276977)
Issue Tracking Open Issues

Backup plugin permits to archive and restore your Hudson home directory.

Description

The Backup plugin adds a new Backup manager item in the Manage Hudson page. This item allows (cf. screenshot below):

  • Tweaking backup settings (using the Setup link)
  • Backuping Hudson's configuration (using the Backup Hudson configuration link)
  • Restoring Hudson's configuration from a previous backup (using the Restore Hudson configuration link)

Version history

Version 1.5 (07/01/2010)

  • Implemented HUDSON-6892: Allow configuration of custom exclusions
  • Implemented HUDSON-5305: It is no more possible to use tar.gz and tar.bz2 compression formats from Windows anymore.
  • Fixed HUDSON-5929: Some images were not displayed.

Version 1.4.1 (02/21/2010)

  • Help messages fixed

Version 1.4 (02/11/2010)

  • It is now possible to define which files/directories have to saved from jobs' workspaces using a set of Ant includes/excludes patterns (refer to the @includes of Ant fileset for the exact format):

Version 1.3

  • Backup content is now configurable
  • Only one backup in the same time is possible

Version 1.2

  • Maintenance release to remove a redirection problem on settings form submission when hudson is not the ROOT application (on http://myserver/hudson urls)

Version 1.1

  • Backup should run in the higher security privilege (report)
  • Tar formats supported
  • Configuration section
  • File to restore selection

Version 1.0 (04/10/2009)

  • Initial realease including manual file selection and zip format

Todo by priority

  • Backup planification
  • Finer configuration (File to backup filter, backup file name format, ...)
  • Speed improvement
  • Fix help fields which do not get displayed
  • Support hudson launched via java -jar hudson.war (Hudson doesn't like his webapp directory replacement)
  • Build history management (number of backup to keep, ...)
  • Incremental backup
  • Backup jobs individually
  • Automatic backup file format detection on restore

Labels:

plugin-misc plugin-misc Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Nov 25, 2009

    David Aldrich says:

    Thanks for providing this plugin. I'm running 1.3 and get an error when I try t...

    Thanks for providing this plugin.

    I'm running 1.3 and get an error when I try to backup to a mapped drive:

    [ INFO] Full backup file name : H:\HudsonBackup\backup_20091125_1202.zip
    [ERROR] org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: H:\HudsonBackup\backup_20091125_1202.zip (The system cannot find the path specified) (and the archive is probably corrupt but I could not delete it)
    org.jvnet.hudson.plugins.backup.BackupException: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: H:\HudsonBackup\backup_20091125_1202.zip (The system cannot find the path specified) (and the archive is probably corrupt but I could not delete it)
    at org.jvnet.hudson.plugins.backup.utils.BackupEngine.doBackup(BackupEngine.java:91)
    at org.jvnet.hudson.plugins.backup.utils.BackupTask.run(BackupTask.java:85)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: H:\HudsonBackup\backup_20091125_1202.zip (The system cannot find the path specified) (and the archive is probably corrupt but I could not delete it)
    at org.jvnet.hudson.plugins.backup.utils.BackupEngine.handleEnd(BackupEngine.java:80)
    at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:336)
    at org.jvnet.hudson.plugins.backup.utils.BackupEngine.doBackup(BackupEngine.java:89)
    ... 2 more
    [ INFO] Cancel hudson shutdown mode
    [ INFO] Backup end at [11/25/09 12:02:50]
    [ INFO] [5.922s]

    Also, I noticed that the help text on the plugin interface doesn't work.

    David

  2. Dec 22, 2009

    boy.pockets says:

    It seems that your todo list already has an item to schedule a back up (I think ...

    It seems that your todo list already has an item to schedule a back up (I think that is what "Backup planification" is supposed to mean ). Either way, it would be nice to have a weekly backup or something similar. Or maybe there is already a way to do this?

    Thanks for the extension :)

  3. Jan 17, 2010

    Dylan Cali says:

    Some issues in 1.3: In the setup menu under 'Backup Content' I am getting a ...

    Some issues in 1.3:

    • In the setup menu under 'Backup Content' I am getting a status code: 404 error when trying to view the associated help.
    • When I check 'backup builds history' and 'backup maven artifacts' and save, those options do not stay checked, i.e. i have to re-check them the next time i go into setup.  but they do backup
    • Also when using tar.gz or tar.bz2 on Windows I get an ArchiverException/IOException:  "Request to write '3020 bytes' exceeds size in header of '330623' " Zip works fine though.
    • Finally being able to schedule backups really is a 'must-have' feature, perhaps through the standard hudson jobs screen?

    Otherwise great plugin, very useful!

    Thanks 

  4. Feb 09

    Alexander Popov says:

    David Aldrich, I got this problem, when I tried to backup to map network disk. B...

    David Aldrich, I got this problem, when I tried to backup to map network disk. Backup to local disk executed successfully.

  5. Apr 22

    Jan De Bleser says:

    The schedule the backup, I have created a job in hudson that runs every week fol...

    The schedule the backup, I have created a job in hudson that runs every week following command:

    wget http://<hudson address>/backup/launchBackup &