On my dying Ubuntu 18.04 system I was able to retrieve the crewdb_bak.tar file
(PostgreSQL backup file) and save it to a USB. The file was created with the following command:
pg_dump -U postgres -h localhost -W -F t crewdb > /home/chris1/Documents/crewcut/crewdb/crewdb_bak.tar
On a new Ubuntu system after I installed PostgreSQL I ran the following command in the terminal to restore the database:
psql -U postgres -d crewdb < /media/chh1/1818-305D/crewdb_bak.tar
Unfortunately I get the following output:
psql: FATAL: Peer authentication failed for user "postgres"
pg_dump -U postgres -h localhost -W -F t crewdb > /home/chris1/Documents/crewcut/crewdb/crewdb_bak.tar
psql -U postgres -d crewdb < /media/chh1/1818-305D/crewdb_bak.tar