Top Topic ?

Backup jobs for Hudson

Posted in php by Ladislav Prskavec on November 11, 2009

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
Tagged with: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: