Skip to content

Commit

Permalink
fix pg_dump syntax to exclude schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP committed Feb 13, 2014
1 parent 6e44ca8 commit 62f9899
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/export/exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def build_pg_dump_command

[ "PGPASSWORD=#{password}", # pass the password to pg_dump
"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
"--no-owner", # do not output commands to set ownership of objects
"--no-privileges", # prevent dumping of access privileges
Expand Down

0 comments on commit 62f9899

Please sign in to comment.