콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
13273 화면

Hi guys. I was trying to make a script for making backups in the shell and I shreddered something. Need help now. :)

That´s what I did:

- I made a db backup with pg_dump -Fc

- I renamed the original db in the shell by using psql

- I created a new db with the original name by using createdb in the shell

- restored dumped dbdata into the new db by pg_restore -d

The funny thing was, Odoo was using the old, renamed database, not the new one with the original name.

Now we dropped the old/renamed database and odoo wants us to setup a new database instead of use the new database with the original name. The Database exists and in pgAdmin it looks identically like before that whole operation.

Of course i restarted odoo.

Thanks

아바타
취소

Hi Martin! I've created an Odoo module that automates backups from your Odoo, without technical knowledge. If this could help you have a look at https://www.odoo.com/forum/help-1/question/public-release-automated-backup-module-82374 there are the links to the module and a full guide. Hope this can help you :)

베스트 답변

Try restoring to a new db name and modifying whatever your start up script is for the new name, also check db ownership vs your script.  

아바타
취소
작성자 베스트 답변

Thanks. The ownership was the problem: psql -U postgres -c "ALTER DATABASE dbname OWNER TO odoo" solved the problem.
Thank you also for listing possibilities for the autobackup. I will check them.

아바타
취소
베스트 답변

Suggestion, I use to do a backup linux/debian/ubuntu package autopostgresqlbackup. This useful package will give you a copy of the daily, weekly, etc.

아바타
취소
관련 게시물 답글 화면 활동
1
5월 16
8468
2
9월 19
3804
3
6월 16
15490
3
5월 15
9874
1
3월 15
9153