I'm auto backing up my database to S3 using code from
http://github.com/jpearl/heroku_backups but it's giving me this error:

pg_dump: server version: 8.3.11; pg_dump version: 8.3.7
pg_dump: proceeding despite version mismatch

Can someone help?  I've pasted the pg_dump code below.


def get_db_settings
  database_url = ENV['DATABASE_URL']
  matches = database_url.match(/postgres:\/\/([^:]+):([...@]+)@([^\/]+)\/
(.+)/)
  {:username => matches[1], :password => matches[2], :host =>
matches[3], :db_name => matches[4]}
end

def pg_dump(filename)
  settings = get_db_settings
  ENV['PGPASSWORD'] = settings[:password]
  `pg_dump -i -h #{settings[:host]} -U #{settings[:username]} -F c
#{settings[:db_name]} > "tmp/#{filename}.pgdump"`
  filename
end

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to