summary refs log tree commit diff
path: root/develop/postgres.html
diff options
context:
space:
mode:
Diffstat (limited to 'develop/postgres.html')
-rw-r--r--develop/postgres.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/develop/postgres.html b/develop/postgres.html

index e1b4ed6cd7..240ea588fc 100644 --- a/develop/postgres.html +++ b/develop/postgres.html
@@ -309,9 +309,9 @@ space on disk after porting to Postgres.</p> <p>Firstly, shut down the currently running synapse server and copy its database file (typically <code>homeserver.db</code>) to another location. Once the copy is complete, restart synapse. For instance:</p> -<pre><code class="language-sh">./synctl stop +<pre><code class="language-sh">synctl stop cp homeserver.db homeserver.db.snapshot -./synctl start +synctl start </code></pre> <p>Copy the old config file into a new config file:</p> <pre><code class="language-sh">cp homeserver.yaml homeserver-postgres.yaml @@ -334,10 +334,10 @@ run:</p> </code></pre> <p>Once that has completed, change the synapse config to point at the PostgreSQL database configuration file <code>homeserver-postgres.yaml</code>:</p> -<pre><code class="language-sh">./synctl stop +<pre><code class="language-sh">synctl stop mv homeserver.yaml homeserver-old-sqlite.yaml mv homeserver-postgres.yaml homeserver.yaml -./synctl start +synctl start </code></pre> <p>Synapse should now be running against PostgreSQL.</p> <h2 id="troubleshooting"><a class="header" href="#troubleshooting">Troubleshooting</a></h2>