I am trying to shift from heroku to amazon aws and after I dumped the db using:
heroku pg:backups:capture
heroku pg:backups:download
I ran:
eb ssh
cd /var/app/current
pg_restore -v -h $NAME.$ID.$DATACENTER.rds.amazonaws.com -U $RDS_ROOT_USER -d $DATABASE_NAME latest.dump
I get the following error:
pg_restore: [archiver] unsupported version (1.13) in file header
BTW I am using rails.
What am I doing wrong?