First you need to export your data using the pg_dump command and then you can import data using the pg_restore command.