dump only the public schema when backing up the db

This commit is contained in:
Régis Hanol 2014-02-17 19:14:57 +01:00
parent 48ac29ae5d
commit 6f6a8c3f1b
1 changed files with 1 additions and 2 deletions

View File

@ -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