From 6f6a8c3f1b2a4def7e5c457729a91fc8ad3a7831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 17 Feb 2014 19:14:57 +0100 Subject: [PATCH] dump only the public schema when backing up the db --- lib/export/exporter.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/export/exporter.rb b/lib/export/exporter.rb index 8cf0e92e3..a68857e93 100644 --- a/lib/export/exporter.rb +++ b/lib/export/exporter.rb @@ -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