Skip to content Skip to sidebar Skip to footer

Migrating Your Odoo to odoo.sh

In August 2021, my company i worked in has required me to move in the Odoo on-premise server to Odoo.sh. I must say, it's a good choice because Odoo.sh provide scalability to our running ERP (which is Odoo ERP of course) rather than running with self-hosted on premise server.

Odoo.sh is a platform as a service provided by Odoo, in purpose to allows the end-users to easily test your developments, manage your feature-branches, and beta-test your features on duplicates of your customer's production instance. 

Since i'm about to migrating entire ERP to a cloud, i was thinking that I do need a full time research on how to migrate, doing this or that. But turns out, it's easy-peasy! The entire scheme was just downloading your .zip file from your server, and then upload it. Simple!

Before doing things, first thing first, you need to create a github account and repository. It's because all of your apps will be stored here. Not only apps, but your module and customs. So, whenever you want to add apps, just put it to your github repo!

Later on, you have to sign up to odoo.sh with your previously-created github account. Here, you should  authorize odoo to make it able reading your created repository and load your module or apps.

Register to GitHub

After signing in, create your project and fill the information.

 

Creating New Server

In this case, we are about to migrate from on-premise server to odoo.sh server. You cannot put the version that different from your on-premise server because odoo database built different in every version it has. If you have a plan to upgrade your odoo version, you have to migrate it first.

Also, you need to put your enterprise code to be able to proceed. In case you forgot, from your on-premise server, go to Settings > Technical > System Parameter. Then, in your search field, type in database.enterprise_code. Copy and paste that code.

System Parameter

Later on, you will be directed into you odoo.sh project main menu. Congratulation, your odoo.sh is already created! It's still empty, but that's okay!

Now, from your on-premise server, do a backup from /web/database/manager/ and save your .zip file. 

 

Backing Up Your Odoo Database

While you wait for the backup progress finished, you have to get all of your custom module and app file into your new odoo.sh server by pushing to your created github account. If you don't have a custom app, you may begin to the next step. But i doubt that, so i suggest you to read my another article on how to push a odoo module or apps to odoo.sh. This is pretty critical, because if you don't provide your module during restoring a database you may counter and error because the required files is missing. After you done that, you can begin to the next step.

 

In your odoo.sh account, go to the backup tab, and upload your odoo.sh from here.


  

Importing Database to Odoo.sh

Check your Odoo.zip files, if it has a size bigger than 2gb you have to transfer your odoo backup files using SSH to Odoo.sh server. If it's not, you can click on browse button and select your odoo.zip file. After that, click import.

Just wait it up, and after it's done, press the Connect button in your history windows (odoo.sh main menu). it will brings you to your new Odoo sites, hosted in odoo.sh!

That's how you can migrate your on-premise server to odoo.sh. Also, if you have a customized domain provided by domain provider and would like to use it, you can check my other article of how to change odoo.sh with custom domain here.

Post a Comment for "Migrating Your Odoo to odoo.sh"