Backups, modules and upgrades
Backups
A complete backup is the database plus the filestore (attachments, images).
# database
sudo -u odoo19 pg_dump -Fc mydb > /backups/mydb_$(date +%F).dump
# filestore
sudo tar czf /backups/filestore_$(date +%F).tgz -C /opt/odoo19/.local/share/Odoo/filestore mydb
Schedule both with cron and copy them to another server or cloud storage. Test a restore at least once a month.
Adding custom modules
- Copy the module folder into
/opt/odoo19/custom-addonsandchown -R odoo19:it. - Restart Odoo.
- In Odoo turn on developer mode (Settings, bottom of the page), then Apps > Update Apps List, search and install.
To upgrade a module from the command line:
sudo -u odoo19 /opt/odoo19/odoo19-venv/bin/python3 /opt/odoo19/odoo19/odoo-bin -c /etc/odoo19.conf -d mydb -u my_module --stop-after-init
Updating Odoo
Minor updates within 19.0: git pull in the source folder, then restart and upgrade the base module on a copy first. Major upgrades (for example 18 to 19) need a database migration; test on a copy of your data before going live.
Questions about this lesson? Ask in our Odoo Help Forum or book a free call with a CloudPk consultant.
Rating
0
0
There are no comments for now.
Join this Course
to be the first to leave a comment.