From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Postgres dump using password on command line
Date: Mon, 15 Jun 2015 10:58:01 +0200
Message-ID: <mlm42p$ir7$1@ger.gmane.org> (raw)
In-Reply-To: <CALXoLqyOvKQtnq5-LOz7r9M2zSHCJM12AXk_jaxmtLTcK37vFw@mail.gmail.com>
References: <CALXoLqyOvKQtnq5-LOz7r9M2zSHCJM12AXk_jaxmtLTcK37vFw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Ankur Kaushik schrieb am 15.06.2015 um 10:54:
>
> I have made script for the postgresql dump but unable to get dump only using command line as it require the password when execute the script.
>
> list of database command require Password after enter
>
> psql -l -t | cut -d'|' -f1 | sed -e 's/ //g' -e '/^$/d'
>
> same for pg_dump
>
> pg_dump $i|gzip > $backupfile
>
See here:
http://stackoverflow.com/a/6405296/330315
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Postgres dump using password on command line
In-Reply-To: <mlm42p$ir7$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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