Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

When using backup script, I get an error

By
wizardz
on 6/3/16, 3:06 AM 266 views

Hi, when I'm using this backup script : https://www.odoo.com/de_DE/forum/how-to/installation-12/how-to-setup-a-regular-postgresql-database-backup-4728

8

Im getting this error:

Stopping odoo: ok

pg_dump: [archiver (db)] connection to database "giordano_init" failed: FATAL: role "root" 

Starting odoo: ok



What am I doing wrong?

0
wizardz
On 6/3/16, 6:13 AM

I fix the issue

pg_dump -U odoo -E UTF-8 -p 5432 -F p -b -f $filename $db


with this command it works! finally

the "-U odoo" makes it work. You have to specify the proper postgres user in order to access the dabase.

Ermin Trevisan
on 6/6/16, 2:36 AM
0
Edser Solis
On 6/3/16, 7:14 AM

Try changing root with postgre and see if it works. 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/3/16, 3:06 AM
Seen: 266 times
Last updated: 6/3/16, 8:03 AM