I have worked in WINDOWS , I can tell you what i did, you may get the point and do it in MAC .the pg_restore command and others like this i.e pg_dump and others are ther commands which can be run from the pgsql terminal which can be found in the postgres installation folder or may be in the start menu .
From the pgsql terminal following syntax may be used: pg_restore -i -h localhost -p 5432 -U username -d database name -v filename Commands can also be run from inside the Command Prompt cmd , in WINDOWS i did it like this :
'set path=C:\apache2triad\pgsql\bin C:\apache2triad\pgsql\bin\psql.exe -h localhost -p 5432 -U username-d database_name -f filename.sql pause.. '
For restoring database backup of .backup file from terminal: pg_restore -i -h localhost -p 5432 -U username -d database name -v filename
hope you may get some help here.