[SOLVED - see two posts down.]
As strongly suggested by pythonanywhere, I am setting up backups for my postgresql database.
I dumped the data following the instructions on https://help.pythonanywhere.com/pages/RegularPostgresBackups, and everything went well.
I want to restore the postgres database from the dump data, but I am getting a password authentication failure. My terminal input and output are shown below.
(virtual-env-uptodate-production) 12:55 ~/postgresql_backups $ pg_restore --verbose -h measuredfood4875-23.postgres.eu.pythonanywhere-services.com -p 10023 -d measuredfooddb -S measuredfooduser pgbackup2019-11-18-1239.dump
pg_restore: connecting to database for restore
pg_restore: [archiver (db)] connection to database "measuredfooddb" failed: FATAL: password authentication failed for user "measuredfood4875"
I have tried both the password for measuredfooduser and measuredfood4875, neither have worked.
What I would like to know most: which password is actually required?