Correction of restoring PostgreSQL database

Signed-off-by: Bernhard Ostertag <bernieo.github@gmx.de>
This commit is contained in:
BernieO
2018-12-19 01:23:39 +09:00
committed by GitHub
parent 75aa2721f2
commit 3e11bbbb33

View File

@@ -54,8 +54,8 @@ PostgreSQL
^^^^^^^^^^
::
PGPASSWORD="password" psql -h [server] -U [username] -d nextcloud -c "DROP DATABASE \"nextcloud\";"
PGPASSWORD="password" psql -h [server] -U [username] -d nextcloud -c "CREATE DATABASE \"nextcloud\";"
PGPASSWORD="password" psql -h [server] -U [username] -d template1 -c "DROP DATABASE \"nextcloud\";"
PGPASSWORD="password" psql -h [server] -U [username] -d template1 -c "CREATE DATABASE \"nextcloud\";"
Restoring
---------
@@ -81,5 +81,4 @@ PostgreSQL
^^^^^^^^^^
::
PGPASSWORD="password" pg_restore -c -d nextcloud -h [server] -U [username]
nextcloud-sqlbkp.bak
PGPASSWORD="password" psql -h [server] -U [username] -d nextcloud -f nextcloud-sqlbkp.bak