I have a job that runs each night and does an rsync of $JENKINS_HOME, skipping the history. Specifically, I use this command:
rsync --verbose --itemize-changes --archive --omit-dir-times --whole-file --stats --exclude-from=/path/to/jenkins_home/rsync_exclude_filters.txt --delete /path/to/jenkins_home/ /path/to/jenkins_home_backup/ where the rsync_exclude_filters.txt file contains this: /*.log /fingerprints/ /log/ /logs/ /plugins/*/ /plugins/maven* /monitoring/ /updates/ /war/ /jobs/*/builds/ /jobs/*/javadoc/ /jobs/*/last* /jobs/*/nextBuildNumber /jobs/*/scm-polling.log /jobs/*/svnexternals.txt *.bak *~ Obviously, this does not keep any history. Hope that helps Matthew === From: [email protected] [mailto:[email protected]] On Behalf Of Jared Griffith Sent: 29 October 2013 23:31 To: [email protected] Subject: Backups I was wondering what files are necessary to back up a Jenkins master instance? I don't really think it's necessary to backup the workspace and all that, I just want what is necessary in case the server goes boom and I have to put it up on another server. Yeah, it would be nice to have all of the workspace / history stuff, but I don't think it's mandatory. -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
