OOI, have you tried https://wiki.jenkins.io/display/JENKINS/SCM+Sync+configuration+plugin ?
Cheers On Wednesday, 26 July 2017 13:50:36 UTC+1, J0991 wrote: > > Hello Jenkins Community! > > I currently have a Jenkins job which copies my JENKINS_HOME directory to > another directory, tars the copied directory, and then commits the > directory > to source control (Git, Bitbucket). > > As far as best practices go, what files within JENKINS_HOME directory > should > be excluded from the copy before committing to source control? The tarred > copy of the directory resides in a Bitbucket repository which many users > have access to, and I'd like to prevent our Bitbucket users from accessing > sensitive files that reside in the JENKINS_HOME directory. > > From the Jenkins Wiki > <https://wiki.jenkins.io/display/JENKINS/Administering+Jenkins> I was > able > to find the following information pertaining to backups: > > *Back up and restore* > All the settings, build logs, artifact archives are stored under the > JENKINS_HOME directory. Simply archive this directory to make a back up. > Similarly, restoring the data is just replacing the contents of the > JENKINS_HOME directory from a back up. > Back ups can be taken without stopping the server, but when you restore, > please do stop the server. > > It doesn't mention much as far as what files are unnecessary to backup or > what files should be excluded for security reasons. Thanks in advance for > any advice anyone may have! > > - Jason > > > > -- > View this message in context: > http://jenkins-ci.361315.n4.nabble.com/Backing-up-JENKINS-HOME-directory-files-to-exclude-tp4900826.html > > Sent from the Jenkins users mailing list archive at Nabble.com. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/79517e96-37a7-4515-9da4-29ce689af04f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
