Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12846

config files under users directory not backed up

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,
      Can the config files under the users directory be backed up please.
      Either by default or via a configured option.
      Thanks !

        Attachments

          Activity

          Hide
          kutzi kutzi added a comment -

          You've openened this issue against the Periodic backup plugin (https://wiki.jenkins-ci.org/display/JENKINS/PeriodicBackup+Plugin) - which AFAIK already offers the functionality you request - assuming I'm correctly interpreting what you mean with "config files under the users directory". So I either misunderstood your request or you wanted to have this functionality in Jenkins 'core'.

          In the 1st case, please clarify your request, in the 2nd I'm sure this issue will be closed as won't fix as functionality available as plugins usually isn't included in core. The general tendency is to keep core as small as possible.

          Show
          kutzi kutzi added a comment - You've openened this issue against the Periodic backup plugin ( https://wiki.jenkins-ci.org/display/JENKINS/PeriodicBackup+Plugin ) - which AFAIK already offers the functionality you request - assuming I'm correctly interpreting what you mean with "config files under the users directory". So I either misunderstood your request or you wanted to have this functionality in Jenkins 'core'. In the 1st case, please clarify your request, in the 2nd I'm sure this issue will be closed as won't fix as functionality available as plugins usually isn't included in core. The general tendency is to keep core as small as possible.
          Hide
          nigel_robbins Nigel Robbins added a comment -

          Hi,
          Here's some more detail.
          I am using Jenkins security (Jenkins's own user database) that saves configuration information under $JENKINS_HOME/users (e.g. /opt/jenkins/user1/config.xml).
          I installed the periodic backup plugin and selected to backup ConfigOnly.
          The backup ran fine last night and backed up *.xml files in $JENKINS_HOME and under the jobs directory but not config files under the users directory.
          Am I doing something wrong or does the plugin not backup config files under the $JENKINS_HOME/users directory ?
          Hope this clarifies things.
          Thanks !

          Show
          nigel_robbins Nigel Robbins added a comment - Hi, Here's some more detail. I am using Jenkins security (Jenkins's own user database) that saves configuration information under $JENKINS_HOME/users (e.g. /opt/jenkins/user1/config.xml). I installed the periodic backup plugin and selected to backup ConfigOnly. The backup ran fine last night and backed up *.xml files in $JENKINS_HOME and under the jobs directory but not config files under the users directory. Am I doing something wrong or does the plugin not backup config files under the $JENKINS_HOME/users directory ? Hope this clarifies things. Thanks !
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Johno Crawford
          Path:
          src/main/java/org/jenkinsci/plugins/periodicbackup/ConfigOnly.java
          http://jenkins-ci.org/commit/periodicbackup-plugin/33717a9a107940018c36b41972b78b9cb3d3ad0b
          Log:
          JENKINS-12846: config files under users directory not backed up.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Johno Crawford Path: src/main/java/org/jenkinsci/plugins/periodicbackup/ConfigOnly.java http://jenkins-ci.org/commit/periodicbackup-plugin/33717a9a107940018c36b41972b78b9cb3d3ad0b Log: JENKINS-12846 : config files under users directory not backed up.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Johno Crawford
          Path:
          src/main/java/org/jenkinsci/plugins/periodicbackup/ConfigOnly.java
          http://jenkins-ci.org/commit/periodicbackup-plugin/ba70ad8a0a962af35aa0c735e3fa68aa7415b97b
          Log:
          Merge pull request #7 from johnou/configonly-backup-users

          JENKINS-12846: config files under users directory not backed up.

          Compare: https://github.com/jenkinsci/periodicbackup-plugin/compare/353769d724f2...ba70ad8a0a96

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Johno Crawford Path: src/main/java/org/jenkinsci/plugins/periodicbackup/ConfigOnly.java http://jenkins-ci.org/commit/periodicbackup-plugin/ba70ad8a0a962af35aa0c735e3fa68aa7415b97b Log: Merge pull request #7 from johnou/configonly-backup-users JENKINS-12846 : config files under users directory not backed up. Compare: https://github.com/jenkinsci/periodicbackup-plugin/compare/353769d724f2...ba70ad8a0a96
          Hide
          johno Johno Crawford added a comment - - edited

          users directory will be backed up in the next build (1.3).

          Show
          johno Johno Crawford added a comment - - edited users directory will be backed up in the next build (1.3).

            People

            Assignee:
            johno Johno Crawford
            Reporter:
            nigel_robbins Nigel Robbins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: