pg_dumpall -Upostgres > divar.backup #psql -f infile postgres #Restore using this command.