Backup and Restore Postgresql Database

Posted on Sun 20 December 2015 in postgresql

Backup:

$ pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}

Restore:

$ psql -U {user-name} -d {desintation_db}-f {dumpfilename.sql}

How to remove a host from hostfile

Posted on Sun 20 December 2015 in snippet

$ ssh-keygen -R hostname