Received: from jupiter.hub.org (jupiter.hub.org [64.49.215.5]) by postgresql.org (Postfix) with ESMTP id 862EF476FD2 for ; Wed, 13 Mar 2002 09:36:04 -0500 (EST) Received: (from news@localhost) by jupiter.hub.org (8.11.6/8.11.6) id g2DE7ZK01470 for pgsql-admin@postgresql.org; Wed, 13 Mar 2002 08:07:35 -0600 (CST) (envelope-from news) From: "Peter Jansen" X-Newsgroups: comp.databases.postgresql.admin References: Subject: Re: how to cron pg_dump and vaccum Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Wed, 13 Mar 2002 14:07:18 GMT X-Complaints-To: abuse@Belgium.EU.net Organization: KPNQwest customer news service To: pgsql-admin@postgresql.org X-Archive-Number: 200203/180 X-Sequence-Number: 3714 > I want to program pg_dump in crontab but with authentification of user > pg_dump prompt a user name and password. > how can i backup my database automatic (one backup for a day). > pg_version :7.0 This is my backup script: (1 line) su -c "PGPASSWORD=;export PGPASSWORD;pg_dumpall>/var/lib/pgsql/postgres_backup" postgres PGPASSWORD is your postgreSQL administrator password. I use pg_dumpall to dump all databases in one time.