Skip to content

Commit 3f24ce2

Browse files
Revert "FEATURE (faq): Add how to update Postgresus"
This reverts commit 12b028b.
1 parent 12b028b commit 3f24ce2

File tree

1 file changed

+0
-78
lines changed

1 file changed

+0
-78
lines changed

app/faq/page.tsx

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ export default function FAQPage() {
8080
text: "Postgresus uses the directory format with zstd compression because it provides the most efficient backup and restore speed after extensive testing. The directory format with zstd compression level 5 offers the optimal balance between backup creation speed, restore speed and file size.",
8181
},
8282
},
83-
{
84-
"@type": "Question",
85-
name: "How to update Postgresus?",
86-
acceptedAnswer: {
87-
"@type": "Answer",
88-
text: "To update Postgresus, navigate to your Postgresus directory (usually /opt/postgresus) and run: docker compose stop, docker system prune -a, docker compose up -d. For Docker run, stop and remove the container first, then prune and run a new container with the latest image.",
89-
},
90-
},
9183
{
9284
"@type": "Question",
9385
name: "Where is Postgresus installed?",
@@ -237,76 +229,6 @@ export default function FAQPage() {
237229
support. So this is priority in addition to current dump format.
238230
</p>
239231

240-
<h2 id="how-to-update">How to update Postgresus?</h2>
241-
242-
<p>
243-
To update Postgresus to the latest version, you need to stop the
244-
current container, remove old images and start it again with
245-
the latest image.
246-
</p>
247-
248-
<h3 id="update-docker-compose">Update with Docker Compose:</h3>
249-
250-
<p>
251-
Navigate to your Postgresus directory (usually{" "}
252-
<code>/opt/postgresus</code>) and run:
253-
</p>
254-
255-
<div className="relative my-6">
256-
<pre className="overflow-x-auto rounded-lg bg-gray-900 p-4 text-sm text-gray-100">
257-
<code>{`docker compose stop
258-
docker system prune -a
259-
docker compose up -d`}</code>
260-
</pre>
261-
<div className="absolute right-2 top-2">
262-
<CopyButton
263-
text={`docker compose stop
264-
docker system prune -a
265-
docker compose up -d`}
266-
/>
267-
</div>
268-
</div>
269-
270-
<h3 id="update-docker-run">Update with Docker run:</h3>
271-
272-
<p>Run the following commands:</p>
273-
274-
<div className="relative my-6">
275-
<pre className="overflow-x-auto rounded-lg bg-gray-900 p-4 text-sm text-gray-100">
276-
<code>{`docker stop postgresus
277-
docker rm postgresus
278-
docker system prune -a
279-
docker run -d \\
280-
--name postgresus \\
281-
-p 4005:4005 \\
282-
-v ./postgresus-data:/postgresus-data \\
283-
--restart unless-stopped \\
284-
rostislavdugin/postgresus:latest`}</code>
285-
</pre>
286-
<div className="absolute right-2 top-2">
287-
<CopyButton
288-
text={`docker stop postgresus
289-
docker rm postgresus
290-
docker system prune -a
291-
docker run -d \\
292-
--name postgresus \\
293-
-p 4005:4005 \\
294-
-v ./postgresus-data:/postgresus-data \\
295-
--restart unless-stopped \\
296-
rostislavdugin/postgresus:latest`}
297-
/>
298-
</div>
299-
</div>
300-
301-
<div className="rounded-lg border border-blue-200 bg-blue-50 p-4 my-6 pb-0">
302-
<p className="text-sm text-blue-900 m-0">
303-
<strong>💡 Note:</strong> The{" "}
304-
<code>docker system prune -a</code> command removes all unused
305-
images, which ensures you pull the latest version. Be aware
306-
this will remove all unused Docker images on your system.
307-
</p>
308-
</div>
309-
310232
<h2 id="installation-directory">
311233
Where is Postgresus installed if installed via .sh script?
312234
</h2>

0 commit comments

Comments
 (0)