pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedBackup passwd protected DB
2+ messages / 2 participants
[nested] [flat]
* Backup passwd protected DB
@ 2003-05-26 09:29 Nathalie Boulos <nathalieboulos@hotmail.com>
2003-05-26 09:59 ` Re: Backup passwd protected DB Victor Yegorov <viktors.jegorovs@nordlb.lv>
0 siblings, 1 reply; 2+ messages in thread
From: Nathalie Boulos @ 2003-05-26 09:29 UTC (permalink / raw)
To: pgsql-admin
Hello,
I need to backup a postgresql-7.3.2 DB with a user having a password using
cron.
every time i call pg_dump I get prompted for a password. It's OK if i'm
running it from command line. But when i use cron, the backup couldn't be
executed because no password is given.
I don't want to put the password in clear text in any file for security
reasons, and i don't want to grant read access to a "backup" user with no
password.
is there any solution to dump that database?
Thanks for your help
Regards
Nathalie
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Backup passwd protected DB
2003-05-26 09:29 Backup passwd protected DB Nathalie Boulos <nathalieboulos@hotmail.com>
@ 2003-05-26 09:59 ` Victor Yegorov <viktors.jegorovs@nordlb.lv>
0 siblings, 0 replies; 2+ messages in thread
From: Victor Yegorov @ 2003-05-26 09:59 UTC (permalink / raw)
To: Nathalie Boulos <nathalieboulos@hotmail.com>; +Cc: pgsql-admin
* Nathalie Boulos <nathalieboulos@hotmail.com> [26.05.2003 12:49]:
> Hello,
>
> I need to backup a postgresql-7.3.2 DB with a user having a password using
> cron.
>
> every time i call pg_dump I get prompted for a password. It's OK if i'm
> running it from command line. But when i use cron, the backup couldn't be
> executed because no password is given.
>
> I don't want to put the password in clear text in any file for security
> reasons, and i don't want to grant read access to a "backup" user with no
> password.
>
> is there any solution to dump that database?
In my case, I've created a separate user, without OS password, stored DB
password in ~/.pgpass with proper permissions.
Now, to access OS user, I need to enter root console and make `su'.
You can also write a little script, that would do sily `encoding' of your
password, say - XOR it with some value. It'll be harder to see real
password.
--
Victor Yegorov
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-26 09:59 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-26 09:29 Backup passwd protected DB Nathalie Boulos <nathalieboulos@hotmail.com>
2003-05-26 09:59 ` Victor Yegorov <viktors.jegorovs@nordlb.lv>
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