Re: pg_dump shell script with ~/.pgpass
От | Terry Lee Tucker |
---|---|
Тема | Re: pg_dump shell script with ~/.pgpass |
Дата | |
Msg-id | 200501271206.54866.terry@esc1.com обсуждение исходный текст |
Ответ на | Re: pg_dump shell script with ~/.pgpass (MargaretGillon@chromalloy.com) |
Список | pgsql-general |
On Thursday 27 January 2005 11:47 am, MargaretGillon@chromalloy.com saith: > > My other question... Is cron.daily is being run by root? If so would I need > to put the .pgpass file in root's home directory? > -- I don't know about .pgpass, so I can't help you with that. Root does run cron.daily. You can setup your own personal crontab entries by issuing the following command: crontab -e Do this with your personal account, not root. You will get a vi session when you execute this command and then you can setup you backup to occur as you desire. Here is what mine looks like: # min hour dom mon doy command # --- ---- ---- ---- ----- --------------- 30 7,12,22 * * * /esc/source.bkp 0 22 * * * cd /esc/pgrnd/prog; ./dbDump.sh rnd Word wrap has screwed up the alignment, but you get the idea.
В списке pgsql-general по дате отправления: