Odoo Database Upgrade FAQ
7. Is there an alternative method like SFTP to upload my database?
Yes, you can use SFTP to upload your database dump but you'll need to use the upgrade API instead of the html form.
You need to create a script (bash, python, ...) using the documentation
You'll need to call 3 methods:
will give you information about your upgrade request, the most useful will be:
- the request ID
- the private key
will give you the required parameter to connect to the SFTP server
will actually start the migration process
You will upload your database (using the 'sftp' command line tool for example) between method n°2 and method n°3.
An important note: do not forget to call the 'process' method, otherwise your request will stay in 'draft' state and you will never receive your upgraded database.
You can find a sample script here:
Here is an example of use:
CONTRACT=M1234-abcd EMAILemail@example.com AIM=test TARGET=10.0 DUMP=/path/to/dbdump.sql.gz bash odoo_upgrade_request.sh
You should have a valid SSH public key at: