diff --git a/lib/pg_tasks.rb b/lib/pg_tasks.rb index df4d15e..09cd58d 100644 --- a/lib/pg_tasks.rb +++ b/lib/pg_tasks.rb @@ -92,9 +92,10 @@ def data_restore(filename) set_psql_env command = 'pg_restore --data-only --exit-on-error ' \ - ' --single-transaction --no-privileges --no-owner ' \ + ' --disable-triggers --single-transaction --no-privileges --no-owner ' \ " -d #{Shellwords.escape(configuration['database'])} " \ - " #{shell_filename }" + " --use-list=#{restore_list_file.path} " \ + " #{shell_filename}" unless Kernel.system(command) raise 'Error during data_restore ' else