mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
fix pg_dump syntax to exclude schemes
This commit is contained in:
parent
6e44ca8e17
commit
62f98993cd
1 changed files with 2 additions and 1 deletions
|
@ -160,7 +160,8 @@ module Export
|
||||||
|
|
||||||
[ "PGPASSWORD=#{password}", # pass the password to pg_dump
|
[ "PGPASSWORD=#{password}", # pass the password to pg_dump
|
||||||
"pg_dump", # the pg_dump command
|
"pg_dump", # the pg_dump command
|
||||||
"--exclude-schema=backup,restore", # exclude both backup & restore schemes
|
"--exclude-schema=backup", # exclude backup schema
|
||||||
|
"--exclude-schema=restore", # exclude restore schema
|
||||||
"--file='#{@dump_filename}'", # output to the dump.sql file
|
"--file='#{@dump_filename}'", # output to the dump.sql file
|
||||||
"--no-owner", # do not output commands to set ownership of objects
|
"--no-owner", # do not output commands to set ownership of objects
|
||||||
"--no-privileges", # prevent dumping of access privileges
|
"--no-privileges", # prevent dumping of access privileges
|
||||||
|
|
Loading…
Reference in a new issue