title: What is the best way to migrate grafana to a newer version?
body: <p>What is the best-practice in terms of migrating grafana  (configuration, dashboards etc.) to a a newer version ?</p>
  <p>I want to migrate a v3 grafana installation to a new server which will be running the v4 codebase with alerting!</p>
  <p>According to the docs, grafana v4 will automatically update the database schema once you start it so I assume this process is essentially:</p>
  <ol>
  <li>Install grafana v4 on new server.</li>
  <li>Copy the /var/lib/grafana/grafana.db from old server to the new one.</li>
  <li>Merge the /etc/grafana/grafana.ini file.</li>
  <li>Install any plugins</li>
  <li>Restart grafana-server</li>
  </ol>
  <p>Is their anything I'm missing?</p>
  <p>UPDATE:</p>
  <p>What if grafana it's deployed as a docker container ? Bellow there's a docker-compose file which spins up a grafana 7.3.5 container, what files should I migrate to the container via mount volume ?</p>
  <pre class="lang-yaml prettyprint-override"><code>version: &quot;3.1&quot;
  services:
   
  
    grafana_seven:
          image: &quot;grafana/grafana:${NEW_TAG}&quot;
          user: &quot;${UID}:${GID}&quot;
          container_name: newgrafana
          ports:
            - &quot;3001:3000&quot;
          volumes:
            - ./tmp_volume/graf_volume/new_grafana/:/var/lib/grafana
  
  </code></pre>