Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-05 Thread Geoffrey
Lawrence C wrote: Hi Tim, How do I setup cronjob for user "postgres" then in scripts? that what i mean thanks :) log in or su to postgres and 'crontab -e' to edit the postgres crontab. OR as root 'crontab -u postgres -e' -- Until later, Geoffrey Registered Linux User #108567

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-05 Thread Lawrence C
Hi Tim, How do I setup cronjob for user "postgres" then in scripts? that what i mean thanks :) --- tim hall <[EMAIL PROTECTED]> wrote: > Lawrence C, > On Wednesday 01 September 2004 14:20, you went: > > Anyone good in writing Linux scripting for backup > > PostgreSQL. I just required a simpl

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-03 Thread Sanjay Arora
On Thu, 2004-09-02 at 12:26, Kaolin Fire wrote: > > echo "1 3 * * * postgres /usr/local/bin/pg_dumpall > > ~/backup.sql" >> /etc/crontab > > note to remember the two >>'s so you don't obliterate your crontab like > I just did. > Would someone tell of a modification to this script

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-03 Thread Christopher Browne
Centuries ago, Nostradamus foresaw when [EMAIL PROTECTED] (Naomi Walker) would write: > Anything would plain text would be a problem.  Isnt .pgpass plain > text? Yes, it's plain text. How do you propose to improve on that? At _some_ point, there has GOT to be a password in plain text form that

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Tom Lane
Naomi Walker <[EMAIL PROTECTED]> writes: > Anything would plain text would be a problem. Isnt .pgpass plain text? Plain text is irrelevant. Securing the file properly is what's relevant (and libpq will not read a .pgpass file with insecure permissions...) regards, tom la

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Naomi Walker
-- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized t

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Tom Lane
Naomi Walker <[EMAIL PROTECTED]> writes: > Christopher Browne wrote: >>> One question , if you set access to server with password in >>> pg_hba.conf how can you pass the apssword in the script? >> >> You don't have to if you put it in $HOME/.pgpass; see the >> documentation for the format of that

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Naomi Walker
-- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized t

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Christopher Browne
A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] (Sandro Garoffolo) wrote: > One question , if you set access to server with password in > pg_hba.conf how can you pass the apssword in the script? You don't have to if you put it in $HOME/.pgpass; see the documentation for the format o

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Sandro Garoffolo
Geoffrey wrote: Kaolin Fire wrote: For that matter: echo "1 3 * * * postgres /usr/local/bin/pg_dumpall > ~/backup.sql" >> /etc/crontab note to remember the two >>'s so you don't obliterate your crontab like I just did. Unless things have changed, and they might have, you have to te

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-02 Thread Geoffrey
Kaolin Fire wrote: For that matter: echo "1 3 * * * postgres /usr/local/bin/pg_dumpall > ~/backup.sql" >> /etc/crontab note to remember the two >>'s so you don't obliterate your crontab like I just did. Unless things have changed, and they might have, you have to tell cron to reread

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-01 Thread Kaolin Fire
For that matter: echo "1 3 * * * postgres /usr/local/bin/pg_dumpall > ~/backup.sql" >> /etc/crontab note to remember the two >>'s so you don't obliterate your crontab like I just did. :ulp: -kaolin tim hall wrote: Lawrence C, On Wednesday 01 September 2004 14:20, you went: Anyone

Re: [ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-01 Thread tim hall
Lawrence C, On Wednesday 01 September 2004 14:20, you went: > Anyone good in writing Linux scripting for backup > PostgreSQL. I just required a simple scripts only. > > Normally we do the manual ways as following: > > In root > > root# su - postgres > bash# pgdumpall >  backup.sql > bash# exit > ro

[ADMIN] Create Linux Script for PostgreSQL database backup

2004-09-01 Thread Lawrence C
Hi All, Anyone good in writing Linux scripting for backup PostgreSQL. I just required a simple scripts only. Normally we do the manual ways as following: In root root# su – postgres bash# pgdumpall > backup.sql bash# exit root# I’m planning to write script.sh for cronjob but not too sure ab