If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > how to restore single .backup file (backup of multiple database in a single backup )

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-11, 02:12
sat123stud sat123stud is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
Question how to restore single .backup file (backup of multiple database in a single backup )

how to restore single .backup file (backup of multiple database in a single backup ) on windows having postgreSQL installed
Reply With Quote
  #2 (permalink)  
Old 11-15-11, 04:17
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Hop did you create the .backup file? Which exact(!) command did you use?
Reply With Quote
  #3 (permalink)  
Old 11-15-11, 05:07
sat123stud sat123stud is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
Backup file is automatically created by the script written on production server

Backup file is automatically created by the script written on production server and then this backup is updated on the standby server through the script.

there is no direct command to take the backup but i am sending you the link
which can probably help u.
[URL="http://www.thegeekstuff.com/2009/01/how-to-backup-and-restore-postgres-database-using-pg_dump-and-psql/"]
Reply With Quote
  #4 (permalink)  
Old 11-17-11, 15:00
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Again, WHAT was the specific syntax that YOU used ??? the pg_dumpall?

Rather than create a single huge backup file with the entire server's contents dumped there, it's often more 'friendly' to create individual database backups.
If it's a single file, copy the backup file to a working file, then delete everything in front of the first portion of text referencing the database name in question, and everything after the last line of SQL that references your target database.

Then, execute the backup SQL work file, using pgadmin or pSQL.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On