Permalink
Browse files

add -i flag to pg_dump to ignore minor pg version differences

  • Loading branch information...
1 parent b26ac15 commit 209ba2ac075805e81c34c713e4c582e208fd0678 @kamui committed Aug 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup.rake
View
@@ -31,7 +31,7 @@ namespace :backups do
backup_name = "#{APP_NAME}_#{Time.now.to_s(:number)}.sql"
backup_path = "tmp/#{backup_name}"
- `echo #{DB_CONFIG['password']} | pg_dump -Fc --username=#{DB_CONFIG['username']} --host=#{DB_CONFIG['host']} > #{backup_path}`
+ `echo #{DB_CONFIG['password']} | pg_dump -Fc -i --username=#{DB_CONFIG['username']} --host=#{DB_CONFIG['host']} > #{backup_path}`
puts "gzipping sql file..."
`gzip #{backup_path}`

0 comments on commit 209ba2a

Please sign in to comment.