Backup jobs for Hudson
Hudson has new version every week. Before migration I recommend backup jobs and plugins. For backup you can used my hudson-manager. It’s Ant script with some targets. Source you can see at http://gist.github.com/231775.
In manager.properties
you set directories and days after delete old backups.
To run backup use cron with this parameters:
05 10,15 * * 1-5 /usr/bin/ant -f /srv/hudson/hudson-manager/manager.xml backupOnlyJobs 05 19 * * 1-5 /usr/bin/ant -f /srv/hudson/hudson-manager/manager.xml backup
Bigger backup i make one per day and minor backup (jobs only) twice per day. In full backup are stored plugins and jobs. Sometimes you can after upgrade plugins and backup is useful.
Advertisements
leave a comment