LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-22-2008, 01:04 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Unhappy Dumping postgres databases


Hi,
I want to make a full backup of postgres databases. So I entered:
# pg_dumpall > dump.sql

The program runs, but it asks me the password for each database. How can I make it automatic?
 
Old 02-22-2008, 01:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Several options ...

a) create a ~/.pgpass file (read the documentation for details).
b) temporarily modify pg_hba.conf to allow password-less connections
for the superuser



Cheers,
Tink
 
  


Reply

Tags
dump, postgres


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changes in postgres without restarting postgres venki Linux - General 3 07-19-2007 01:06 AM
dumping structure in C Josephus Ross Programming 4 03-26-2007 09:04 PM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
Novell is dumping KDE, so I'll be dumping SuSE KimVette Suse/Novell 10 11-12-2005 08:09 PM
connect two databases using postgres? w0000422 Programming 3 02-21-2004 02:18 PM


All times are GMT -5. The time now is 06:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration