dump only the public schema when backing up the db
This commit is contained in:
parent
48ac29ae5d
commit
6f6a8c3f1b
|
@ -163,8 +163,7 @@ module Export
|
|||
|
||||
[ password_argument, # pass the password to pg_dump
|
||||
"pg_dump", # the pg_dump command
|
||||
"--exclude-schema=backup", # exclude backup schema
|
||||
"--exclude-schema=restore", # exclude restore schema
|
||||
"--schema=public", # only public schema
|
||||
"--file='#{@dump_filename}'", # output to the dump.sql file
|
||||
"--no-owner", # do not output commands to set ownership of objects
|
||||
"--no-privileges", # prevent dumping of access privileges
|
||||
|
|
Loading…
Reference in New Issue