 | New homepage The backup plug-in is being maintained by its owner/maintainers from a new home. The plug-in is still compatible with Hudson, however, the entry points for documentation and issue reporting have been combined in order to provide a single point of entry.
|
Plugin Information
Backup plugin allows archiving and restoring 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)

 | Note from the current maintainer
There are two other alternatives to this plugin:
- The SCM Sync configuration plugin allows automatically tracking changes brought to the global configuration of Hudson and to the jobs configuration into a configuration management system (Subversion, etc.).
- The thinBackup plugin focuses on backuping Hudson's global configuration and jobs configuration. It also offers a scheduling feature (if you think the efforts on this plugin and the Backup one should be merged, just notify us!).
So pick the one which fits your needs  |
Version history
Version 1.6 (12/10/2010)
- Added a new Configuration files (.xml) only option to backup only configuration files.
- Added a new No shutdown option to trigger backup without shutting down Hudson.
- Added some icons in the Backup manager screen.
- Fixed HUDSON-7634: Hudson backup deletes home directory and hangs.
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)
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
Comments (12)
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
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 :)
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:
Otherwise great plugin, very useful!
Thanks
Feb 09, 2010
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.
Apr 22, 2010
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 &
Aug 19, 2010
Alan K says:
I just upgraded to 1.5 from 1.2 and get this error every time. [ INFO] Backup s...I just upgraded to 1.5 from 1.2 and get this error every time.
[ INFO] Backup started at [08/19/10 17:21:11]
[ INFO] Setting hudson in shutdown mode to avoid files corruptions.
[ INFO] Waiting all jobs end...
[ INFO] Number of running jobs detected : 0
[ INFO] All jobs finished.
[ INFO] Full backup file name : D:\TransferDataFolder\Hudson Backup_20100819_1721.zip
[ERROR] org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file
org.jvnet.hudson.plugins.backup.BackupException: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file
at org.jvnet.hudson.plugins.backup.utils.BackupEngine.doBackup(BackupEngine.java:91)
at org.jvnet.hudson.plugins.backup.utils.BackupTask.run(BackupTask.java:64)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: The process cannot access the file because another process has locked a portion of the file
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 [08/19/10 17:21:17]
[ INFO] [6.031s]
What is going on?
Aug 30, 2010
Romain Seguy says:
Don't you have any antivirus software which would access the zip file while it's...Don't you have any antivirus software which would access the zip file while it's being created?
Aug 26, 2010
David Aldrich says:
Hi I am running Hudson 1.373 with Backup plugin 1.5. I found today that i...Hi
I am running Hudson 1.373 with Backup plugin 1.5. I found today that if a backup is started from IE8, the backup file is written but the browser window stalls after:
[ INFO] Backup started at [08/26/10 09:54:30]
[ INFO] Setting hudson in shutdown mode to avoid files corruptions.
[ INFO] Waiting all jobs end...
[ INFO] Number of running jobs detected : 0
The browser never shows the backup as completed.
The browser commentary is correct when using Firefox 3.6.8.
Best regards
David
Dec 08, 2010
Henri Gomez says:
What about version 1.6 release ? Also I wonder if you plan to add backup profi...What about version 1.6 release ?
Also I wonder if you plan to add backup profiles (named).
ie defining one for backuping configuration files and another for full contents.
And allow user to backup using one of defined profils :
http://<hudson address>/backup/launchBackup?profile1
http://<hudson address>/backup/launchBackup?profile2
...
Regards
Dec 08, 2010
Romain Seguy says:
Yep, I'll release it on Friday. For the notion of profile, please open a JIRA is...Yep, I'll release it on Friday.
For the notion of profile, please open a JIRA issue to track your request. If you implement it, that would be good as I don't have much time for that.
Dec 08, 2010
Henri Gomez says:
Good news for 1.6 release. Jira created : http://issues.hudson-ci.org/browse/H...Good news for 1.6 release.
Jira created :
http://issues.hudson-ci.org/browse/HUDSON-8256
Dec 10, 2010
Romain Seguy says:
Release 1.6 delivered today.Release 1.6 delivered today.