Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using postgresql database for web application.i want to backup my application database how can i do?
thank you


What I have tried:

I tried backup in postgresql tools but iam getting error like this
--format custom --blobs --encoding UTF8 --verbose --file "F:\PostgreSql_Backups\Public.backupnew1" \"SNCF\"
pg_dump: [archiver (db)] connection to database ""SNCF"" failed: FATAL: database ""SNCF"" does not exist
pg_dump: *** aborted because of error

Process returned exit code 1.
Posted
Updated 2-Mar-16 22:16pm
Comments
Richard MacCutchan 3-Mar-16 3:33am    
The error message is quite clear: which part of "failed: FATAL: database ""SNCF"" does not exist" are you having trouble with?
User-11630313 3-Mar-16 3:34am    
but i have database SNCF
Richard MacCutchan 3-Mar-16 4:41am    
Check your command options as specified in http://www.postgresql.org/docs/9.5/static/app-pgdump.html.

1 solution

I'd suggest to read Richard MacCutchan[^] comment to the question and the documentation[^].

Quote:
If you have problems running pg_dump, make sure you are able to select information from the database using, for example, psql[^]. Also, any default connection settings and environment variables used by the libpq front-end library will apply.


Note, that proper command is: pg_dump [connection-option...] [option...] [dbname]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900