[email protected] (2013-10-30 10:17):
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
*~
I would exclude workspace (as in vast majority of caseses this is
dowanloaded or generated), but keep builds as there might be important
artifacts there (if they are not important you should not store them in
first place). Also if you have tests in your build jobs and builds are
not preserved then you will loose testing history, this might not be
very important, but looks nice ;-).
Regards,
Nux.
--
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.