mirror of
https://github.com/inventree/inventree-website.git
synced 2026-03-10 13:34:13 +00:00
deploy: 72af7aeb59
This commit is contained in:
@@ -181,13 +181,12 @@
|
||||
<p>The work undertaken to keep InvenTree running is done by a very small group of core developers, who do so in their spare time (and are not sponsored by their employers to work on InvenTree). If you benefit from the InvenTree project, please consider contributing to maintain vibrant development of this software!</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://polar.sh/inventree">Polar.sh</a></li>
|
||||
<li><a href="https://github.com/sponsors/inventree">GitHub</a></li>
|
||||
<li><a href="/fund#github-sponsors">GitHub</a></li>
|
||||
</ul>
|
||||
|
||||
<p>If you are using InvenTree in a commercial setting, please consider sponsoring the project to help support ongoing development and maintenance. Your support is greatly appreciated and helps to ensure that InvenTree remains a viable and sustainable project for years to come.</p>
|
||||
|
||||
<p>If your company benefits from InvenTree, please consider a <a href="https://buy.polar.sh/polar_cl_d7lPAgS9jnW8NDOSWATqdz2gs3wUD1x5M5o7C2rPoAL">one time sponsorship</a> or a <a href="https://buy.polar.sh/polar_cl_UlGc3bUjwB7Vx89dhAY2iF3kUIVFBJC5mJyow4NlJa6">recurring sponsorship</a> to help support the project.</p>
|
||||
<p>If your company benefits from InvenTree, please consider a <a href="/fund#polar">one time sponsorship</a> or a <a href="/fund#polar">recurring sponsorship</a> to help support the project.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
@@ -125,9 +125,11 @@
|
||||
|
||||
<p><img src="/assets/blog/db_update_old_versions.png" alt="Old Setup"></p>
|
||||
|
||||
<p>To perform the backup, we run the following command:</p>
|
||||
<p>To perform the backup, we run the following commands:</p>
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose run --rm inventree-server invoke backup
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose up inventree-db -d
|
||||
docker compose run --rm inventree-server invoke backup
|
||||
docker compose down
|
||||
</code></pre></div></div>
|
||||
|
||||
<p>This will create a backup of the database and media files in the <code class="language-plaintext highlighter-rouge">data/backup</code> directory.</p>
|
||||
@@ -158,8 +160,10 @@
|
||||
|
||||
<p>Now we can restore the data from the backup we created previously, into the new PostgreSQL 17 database. Run the following commands:</p>
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose run --rm inventree-server invoke migrate
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose up inventree-db -d
|
||||
docker compose run --rm inventree-server invoke migrate
|
||||
docker compose run --rm inventree-server invoke restore
|
||||
docker compose down
|
||||
</code></pre></div></div>
|
||||
|
||||
<p>This will restore the database and media files from the backup we created previously.</p>
|
||||
@@ -177,7 +181,8 @@ docker compose run --rm inventree-server invoke restore
|
||||
|
||||
<p>Next, run the InvenTree update procedure:</p>
|
||||
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose run --rm inventree-server invoke update
|
||||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker compose up inventree-db -d
|
||||
docker compose run --rm inventree-server invoke update
|
||||
</code></pre></div></div>
|
||||
|
||||
<h2 id="step-6-verify-new-setup">Step 6. Verify New Setup</h2>
|
||||
|
||||
Reference in New Issue
Block a user