From 62f98993cd051623963381087d3a0ee5f3d97b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 13 Feb 2014 09:12:20 -0800 Subject: [PATCH] fix pg_dump syntax to exclude schemes --- lib/export/exporter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/export/exporter.rb b/lib/export/exporter.rb index ef20eeb7e05..d4cc446c402 100644 --- a/lib/export/exporter.rb +++ b/lib/export/exporter.rb @@ -160,7 +160,8 @@ module Export [ "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