how to take backup and restore in postgresql code example Example: psql load dump psql databasename < data_base_dump