Re: all_roles_backup

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: vihari raj <vihari(dot)postgresdba(at)gmail(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: all_roles_backup
Date: 2021-10-11 21:40:38
Message-ID: CAKFQuwaog089Y16hOdDBfDAvqAysCOOT7biLj_Mk3oGuSU6_YQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Monday, October 11, 2021, vihari raj <vihari(dot)postgresdba(at)gmail(dot)com>
wrote:

> Hi Team,
>
> I'm trying to taking dump of all users but I'm facing below error.
> I'm using below command for roles backup
> command:
> pg_dumpall -h <hostname> -p 5432 -U postgres\ --roles-only -f
> D:\RDS_roles\role.sql
>
> Error:
> pg_dumpall: error: could not connect to database "template1": FATAL:
> password authentication failed for user "postgres\"
> FATAL: password authentication failed for user "postgres\"
>

Your use of a line continuation character sequence in your shell isn’t
actually at the end of a line, so it gets interpreted as part of the value
“postgres”, making it invalid.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dustin Jantz 2021-10-12 19:38:30 Recover Disk Space From Terminated VACUUM FULL ANALYZE
Previous Message vihari raj 2021-10-11 16:21:00 all_roles_backup