Performing Database Operations utilizing Odoo CLI makes operations simpler and helps you handle and keep the database effectively and successfully.
This text will let you know the varied instructions and features which you could carry out database operations utilizing Odoo CLI.
Nevertheless, for those who don’t have primary data of Odoo CLI, learn a newbie information to Odoo CLI.
Prerequisite: We’re assuming that you’ve got primary data of ODOO CLI
Odoo command-line additionally means that you can carry out DB operations like, db backup, restore, duplicate, drop.
./odoo-bin db -c config.conf operation
Right here:-
- db is the sub-command used to carry out the database operation
- -c is the trail of the config file, which helps to run the odoo occasion
Earlier than shifting forward, try our Odoo improvement companies & an intensive vary of high quality Odoo Apps.
Create Backup Utilizing CLI:
./odoo-bin db -c config.conf dump database_name backup.zip
This can create a backup file ‘backup.zip’ within the present listing. This zip will embrace SQL and filestore.
Restore database utilizing CLI:
./odoo-bin db -c config.conf load new_db backup.zip
This can create a brand new database ‘new_db’ utilizing the file ‘backup.zip’
Duplicate database utilizing CLI
./odoo-bin db -c config.conf duplicate db_name new_dbname
This can create a replica database ‘db_name’ which would be the copy of database ‘new_dbname’
Rename database utilizing CLI
./odoo-bin db -c /and so forth/odoo.conf rename db_name new_name
This can rename the database ‘db_name’ to ‘new_name’
In addition to, learn our weblog on find out how to create and restore a database in Odoo to know the whole course of.
Drop database utilizing CLI
./odoo-bin db -c /and so forth/odoo.conf drop db_name
This can drop the database ‘db_name’
Hope you loved this put up, I’d be very grateful for those who’d write your opinions, feedback and ideas to maintain the web page up to date and fascinating.
NEED HELP?
Hope you discover the information useful! Please be happy to share your suggestions within the feedback under.
In the event you nonetheless have any points/queries concerning the identical, please increase a ticket on the UV Desk.
For any doubt, contact us at our help mail.