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.