title: How to export/import the Jenkins configuration?
body: <p>The <a href="https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI" rel="noreferrer">Jenkins CLI</a> provides the function to export&amp;import single jobs, e.g.:</p>
  
  <pre><code>java -jar jenkins-cli.jar -s http://foo-jenkins.tld:8080 get-job myjob &gt; myjob.xml
  java -jar jenkins-cli.jar -s http://bar-jenkins.tld:8080 create-job newmyjob &lt; myjob.xml
  </code></pre>
  
  <p><strong>Is it also possible / How to backup&amp;restore the configs?</strong></p>
  
  <hr>
  
  <p>I mean the whole settings:</p>
  
  <ul>
  <li>the system configuration,</li>
  <li>the global security configuration,</li>
  <li>the credentials,</li>
  <li>the global tool configuration,</li>
  <li>the plugins configuration (the "HTTP Proxy Configuration" and the list of the installed plugins)</li>
  <li>the nodes</li>
  <li>the users</li>
  <li><sub>is anything missing?</sub></li>
  </ul>
  
  <p>The whole settings at once or maybe even as single backup/restore processes like e.g. MozBackup with its "Components selection"</p>
  
  <p><img src="https://i.stack.imgur.com/XuvzR.png" alt="MozBackup - Components selection"></p>
  
  <p>or eclipse with its "Export Preferences" dialog</p>
  
  <p><img src="https://i.stack.imgur.com/CVp2y.png" alt="eclipse - Export Preferences"></p>