Skip to content

Commit

Permalink
fix file write for db restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap authored and Matt Conway committed Feb 18, 2011
1 parent 2547950 commit 51b1117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubber/tasks/rubber.rb
Expand Up @@ -262,7 +262,7 @@ def init_s3()
raise "could not access backup file via s3" unless data

puts "piping restore data to command [#{db_restore_cmd}]"
IO.popen(db_restore_cmd, mode='w') do |p|
IO.popen(db_restore_cmd, 'wb') do |p|
data.value do |segment|
p.write segment
end
Expand Down

0 comments on commit 51b1117

Please sign in to comment.