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

Can full backups include the plugins folder?

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Can full backups include the plugins folder? it only back users and jobs folder

      ls -ltr /var/jenkins/backup/FULL-2011-09-09_05-00/
      rw-rr- 1 jenkins jenkins 215 Aug 24 16:10 hudson.triggers.SCMTrigger.xml
      rw-rr- 1 jenkins jenkins 76 Aug 24 16:10 hudson.tasks.Shell.xml
      rw-rr- 1 jenkins jenkins 132 Aug 24 16:10 hudson.tasks.Maven.xml
      rw-rr- 1 jenkins jenkins 514 Aug 24 16:10 hudson.tasks.Mailer.xml
      rw-rr- 1 jenkins jenkins 128 Aug 24 16:10 hudson.tasks.Ant.xml
      rw-rr- 1 jenkins jenkins 666 Aug 24 16:10 hudson.scm.SubversionSCM.xml
      rw-rr- 1 jenkins jenkins 179 Aug 24 16:10 hudson.scm.CVSSCM.xml
      rw-rr- 1 jenkins jenkins 353 Aug 24 16:10 hudson.plugins.skype.im.transport.SkypePublisher.xml
      rw-rr- 1 jenkins jenkins 188 Aug 24 16:10 hudson.plugins.mercurial.MercurialInstallation.xml
      rw-rr- 1 jenkins jenkins 713 Aug 24 16:10 hudson.plugins.ircbot.IrcPublisher.xml
      rw-rr- 1 jenkins jenkins 698 Aug 24 16:10 hudson.maven.MavenModuleSet.xml
      rw-rr- 1 jenkins jenkins 694 Sep 5 18:22 backup.xml
      rw-rr- 1 jenkins jenkins 526 Sep 6 11:57 thinBackup.xml
      rw-rr- 1 jenkins jenkins 5399 Sep 6 18:08 config.xml
      rw-rr- 1 jenkins jenkins 159 Sep 7 10:50 hudson.model.UpdateCenter.xml
      rw-rr- 1 jenkins jenkins 907 Sep 7 10:50 nodeMonitors.xml
      drwxr-xr-x 19 jenkins jenkins 4096 Sep 9 05:00 jobs
      drwxr-xr-x 4 jenkins jenkins 34 Sep 9 05:00 users
      rw-rr- 1 jenkins jenkins 2010 Sep 9 05:00 installedPlugins.xml

        Attachments

          Activity

          Hide
          tofuatjava Thomas Fürer added a comment -

          We do not include the plugins directory to the backup because we think that plugins are stored on the server anyways and are a lots of data in the backup which are not critical if it is not in. For this we decide to only backup a file which holds the plugin names and version installed.

          We can talk about to automatically install the plugins during a restore operation.

          Show
          tofuatjava Thomas Fürer added a comment - We do not include the plugins directory to the backup because we think that plugins are stored on the server anyways and are a lots of data in the backup which are not critical if it is not in. For this we decide to only backup a file which holds the plugin names and version installed. We can talk about to automatically install the plugins during a restore operation.
          Hide
          cirert Alex Oscar added a comment -

          I strongly second this motion, it would be a great feature (installing plugins automatically in the restore).

          Show
          cirert Alex Oscar added a comment - I strongly second this motion, it would be a great feature (installing plugins automatically in the restore).
          Hide
          z_c Zac Campbell added a comment - - edited

          I second the feature to automatically install plugins during the install.

          I've been trialling this plugin and having to install the plugins manually is a pain but I have some experiences to share with other users.

          The most difficult part is that the string saved in installedPlugins.xml (//plugins/entry/string) does not represent the plugin name in the Jenkins Plugin manager. You have to correlate the name between this field and the Plugin ID on the plugin's page in order to find the right plugins to install.

          (As an aside the name in the Available plugins changes to a different field when it becomes listed in Installed plugins too)

          I have however ascertained that you can restore your backed up config, then install the plugins (via the Plugin Manager) and the job will retain the backed up settings provided the job has not modified and saved inbetween those two steps.

          Show
          z_c Zac Campbell added a comment - - edited I second the feature to automatically install plugins during the install. I've been trialling this plugin and having to install the plugins manually is a pain but I have some experiences to share with other users. The most difficult part is that the string saved in installedPlugins.xml (//plugins/entry/string) does not represent the plugin name in the Jenkins Plugin manager. You have to correlate the name between this field and the Plugin ID on the plugin's page in order to find the right plugins to install. (As an aside the name in the Available plugins changes to a different field when it becomes listed in Installed plugins too) I have however ascertained that you can restore your backed up config, then install the plugins (via the Plugin Manager) and the job will retain the backed up settings provided the job has not modified and saved inbetween those two steps.
          Hide
          tofuatjava Thomas Fürer added a comment -

          will be released with the next version

          Show
          tofuatjava Thomas Fürer added a comment - will be released with the next version

            People

            • Assignee:
              tofuatjava Thomas Fürer
              Reporter:
              jollychang William Zhang
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: