Odoo Help

1

How to restore DB 8.4 to 9.1 ??

By
Saravanan Sakthivel
on 7/29/14, 3:08 AM 1,223 views

How can i take a backup of 8.4 version DB and restore into 9.1 version?.

 

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4454
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/16/15, 5:51 AM

Hello Saravanan,

Using following commands you can backup and restore the database without worrying about the versions.

Backup: pg_dump --host host_name -U USER_NAME --port DB_PORT DB_NAME > path/file_name.sql

Restore: psql DB_NAME -U USER_NAME -f path/file_name.sql

Reference: BACKUP-DUMP-RESTORE

0
Jakub Krzempek
On 7/29/14, 4:41 AM

Hi,

I think the easiest way is to upgrade 8.4 cluster instead of migrating one database. Below I provide steps to do that, hope it'll be helpful.

1. Install both PostgreSQLs: 8.4 and 9.1

2. Check that you have two clusters running using the command:
pg_lsclusters

3. Drop cluster 9.1
pg_dropcluster --stop 9.1

4. Upgrade cluster 8.4
pg_upgradecluster 8.4 main

5. It will take some time to upgrade, and copying all your config from old cluster to the new one.

6. Test if it works

7. Drop 8.4
pg_dropcluster --stop 8.4

8. Upgrade to 9.3 eventually. ;)
 

 

0
Houssine BAKKALI
On 7/31/14, 10:24 AM

without migrating anything(supposing you stay on the same openerp verison)

you should just make a dump of your db in plain text from your 8.4 postgres server and restore it the same way on the 9.1.

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/29/14, 3:08 AM
Seen: 1223 times
Last updated: 10/16/15, 5:54 AM