# File lib/backup/database/postgresql.rb, line 60 def perform! super dump_ext = 'sql' dump_cmd = "#{ pgdump }" if @model.compressor @model.compressor.compress_with do |command, ext| dump_cmd << " | #{command}" dump_ext << ext end end dump_cmd << " > '#{ File.join(@dump_path, name) }.#{ dump_ext }'" run(dump_cmd) end