[code language=”ruby”]
psql databasename < data_base_dump
psql -h hostname -d databasename -U username -f file.sql
[/code]