I have a RoR application hosted on Heroku using the Postgresql database and using the PG Backups tool to backup the database from my application to my local computer. Since the application is still under development, it helps me, from a programming point of view, to bring together the changes made by my colleagues to the database. I have successfully used PG Backups for capture and recovery for several months, but recently, when I run my typical commands, as shown here:
$curl -o latest.dump `heroku pgbackups:url --app XXXXX` $pg_restore --verbose --clean --no-acl --no-owner -h localhost -U XXXXX -d XXXXX_development latest.dump
I get this error after running the curl command:
-bash: pg_restore: command not found
Any ideas on why this is happening? Obviously, the problem is that I cannot restore the downloaded backup.
source share