docs: update backup/restore for postgres.
- use inserts is way more reliable for backup
This commit is contained in:
parent
d6aa1e4df4
commit
d65b0fd30e
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ backup location:
|
|||
$ mysql -u <uname> -p <pass> rhodecode_db_name < mysql-db-backup
|
||||
|
||||
# For PostgreSQL DBs
|
||||
$ PGPASSWORD=<pass> pg_dump rhodecode_db_name > postgresql-db-backup
|
||||
$ PGPASSWORD=<pass> pg_dump --inserts -U <uname> -h localhost rhodecode_db_name > postgresql-db-backup
|
||||
# PosgreSQL restore
|
||||
$ PGPASSWORD=<pass> psql -U <uname> -h localhost -d rhodecode_db_name -1 -f postgresql-db-backup
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue