From: | Sébastien Lardière <sebastien(at)2ndquadrant(dot)fr> |
---|---|
To: | Christophe Mailhebuau <christophe(dot)mailhebuau(at)aquitaine(dot)fr> |
Cc: | pgsql-fr-generale(at)postgresql(dot)org |
Subject: | Re: script backup |
Date: | 2014-10-08 08:39:32 |
Message-ID: | 5434F844.8070309@2ndquadrant.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-fr-generale |
On 08/10/2014 10:34, Christophe Mailhebuau wrote:
> En mettant :
>
> local all all trust dans le pg_hba.conf et redémarrage. connecté en
> tant que postgres, le psql passe.
>
> -bash-4.1$ psql
> psql (9.2.8)
> Saisissez « help » pour l'aide.
>
> postgres=#
>
> Par contre quand j'éxécute le script de backup, pg_backup.sh, il me
> demande toujours un mot de passe.
>
>
> -bash-4.1$ psql
> psql (9.2.8)
> Saisissez « help » pour l'aide.
>
> postgres=# \q
> -bash-4.1$ pwd
> /usr/local/bin/backupexec
> -bash-4.1$ ./pg_backup.sh
> Making backup directory in /backup/2014-10-08/
>
>
> Performing schema-only backups
> --------------------------------------------
>
> Mot de passe pour l'utilisateur postgres :
>
> Qu'en pensez-vous ?
>
>
Comme je l'ai déja dit, le script utilisé force " -h localhost ", donc,
dans pg_hba.conf, ça doit matcher avec une ligne commençant par host, et
non pas local.
Testez avec :
psql -h localhost
--
Sébastien Lardière 06 22 67 28 20
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
From | Date | Subject | |
---|---|---|---|
Next Message | Christophe Mailhebuau | 2014-10-08 08:39:46 | Re: script backup |
Previous Message | Sébastien Lardière | 2014-10-08 08:36:03 | Re: script backup |