Merge pull request #1039 from BernieO/master

Correction of restoring PostgreSQL database
This commit is contained in:
Morris Jobke
2019-01-02 16:02:48 +01:00
committed by GitHub

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