diff --git a/docs/postgres.rst b/docs/postgres.rst
index 76a76cbb542a70b6eb1aed6aa6a31351709c85c3..19d83911159adeec618866bf0bd39d4e47faccb2 100644
--- a/docs/postgres.rst
+++ b/docs/postgres.rst
@@ -88,7 +88,7 @@ is named ``homeserver-postgres.yaml`` and the SQLite snapshot is at
 
     python scripts/port_from_sqlite_to_postgres.py \
         --sqlite-database homeserver.db.snapshot \
-        --postgres-config database_config.yaml
+        --postgres-config homeserver-postgres.yaml
 
 The flag ``--curses`` displays a coloured curses progress UI.