Hi Matt,
I tried this approach. It is generating error when I am using the format of < filename with pg_restore.
Database location: aws/rds
Client where I am running pg-dump and pg-restore is from Windows laptop.
Thanks,
Sarwar
From: Wetmore, Matthew (CTR) <Matthew.Wetmore@xxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, October 24, 2023 1:05 PM To: M Sarwar <sarwarmd02@xxxxxxxxxxx>; Scott Ribe <scott_ribe@xxxxxxxxxxxxxxxx> Cc: pgsql-admin@xxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxx> Subject: RE: pg_restore is not working Pg_restore …blah.. < dumpfile.sql
From: M Sarwar <sarwarmd02@xxxxxxxxxxx>
Hi Scott, When I tried to add -f in the pg_restore clause, it is generating error. I tried to use another clause --file=file-name which is also generating errors.
PS H:\> pg_restore -F t -v -h bronxdb1.c52p1f6zjuib.us-gov-west-1.rds.amazonaws.com -U db_sarwar -d bronxdb1 -t 'bronxdev.errors' --file=C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Errors_20231024-5.DUMP pg_restore: error: options -d/--dbname and -f/--file cannot be used together Try "pg_restore --help" for more information. PS H:\>
Thanks, Sarwar
From: Scott Ribe <scott_ribe@xxxxxxxxxxxxxxxx>
> On Oct 24, 2023, at 10:43 AM, M Sarwar <sarwarmd02@xxxxxxxxxxx> wrote: |