pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedBackup database through web and php
3+ messages / 3 participants
[nested] [flat]
* Backup database through web and php
@ 2002-01-29 03:01 Lau NH <launh@perridot.com>
0 siblings, 2 replies; 3+ messages in thread
From: Lau NH @ 2002-01-29 03:01 UTC (permalink / raw)
To: pgsql-admin; pgsql-hackers@postgresql.org
Hi all,
I am writing a php script to backup my postgres database through web interface, but my database is password required. When I do a pg_dump at the linux shell prompt, it will prompt for password in order to backup the database, does anyone know how to pass this password with the pg_dump command together so that I can do it using php system call?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Backup database through web and php
@ 2002-01-29 14:14 Radu-Adrian Popescu <radu.popescu@aldratech.com>
parent: Lau NH <launh@perridot.com>
1 sibling, 0 replies; 3+ messages in thread
From: Radu-Adrian Popescu @ 2002-01-29 14:14 UTC (permalink / raw)
To: Lau NH <launh@perridot.com>; pgsql-admin; pgsql-hackers@postgresql.org
You could set the authentification method to "trust" for the host the script is being run from, so you won't get a password prompt at all (see the pg_hba.conf file).
----- Original Message -----
From: Lau NH
To: pgsql-admin@postgresql.org ; pgsql-hackers@postgresql.org
Sent: Tuesday, January 29, 2002 05:01
Subject: [ADMIN] Backup database through web and php
Hi all,
I am writing a php script to backup my postgres database through web interface, but my database is password required. When I do a pg_dump at the linux shell prompt, it will prompt for password in order to backup the database, does anyone know how to pass this password with the pg_dump command together so that I can do it using php system call?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Backup database through web and php
@ 2002-01-30 17:31 Naomi Walker <nwalker@eldocomp.com>
parent: Lau NH <launh@perridot.com>
1 sibling, 0 replies; 3+ messages in thread
From: Naomi Walker @ 2002-01-30 17:31 UTC (permalink / raw)
To: Lau NH <launh@perridot.com>; pgsql-admin; pgsql-hackers@postgresql.org
At 11:01 AM 1/29/02 +0800, Lau NH wrote:
>Hi all,
> I am writing a php script to backup my postgres database through web
> interface, but my database is password required. When I do a pg_dump at
> the linux shell prompt, it will prompt for password in order to backup
> the database, does anyone know how to pass this password with the pg_dump
> command together so that I can do it using php system call?
>
I was just reading up on this subject, and it suggests using PGPASSWORD in
the environment. I have not tried that yet, but think all the passwords
must be the same.
It is sometimes unclear to me when challenged for a password, logged in as
postgres, whether or not they want the database password I am working on,
or postgres'. So far, it appears to be asking for the postgres password.
--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100 ext 242
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-01-30 17:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-29 03:01 Backup database through web and php Lau NH <launh@perridot.com>
2002-01-29 14:14 ` Radu-Adrian Popescu <radu.popescu@aldratech.com>
2002-01-30 17:31 ` Naomi Walker <nwalker@eldocomp.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox