TABLE file.ctime as Created
FROM #client-pawnitsystems
WHERE !contains(file.name, "Template")
SORT file.ctime desc
- Install ZeroTier on UTM
- Script to backup using the curl to the db backup endpoint.
https://handbook.coopdevs.org/ca/Odoo/Sysadmin/Add-Backups-To-Odoo-Instance
curl -X POST -F 'master_pwd=ptd2-da5d-uewx' -F 'name=OdooProd_Dev' -F 'backup_format=zip' -o odoo-dev-backup-`date -Iseconds`.zip http://localhost:8065/web/database/backup
curl -X POST -F 'master_pwd=ptd2-da5d-uewx' -F 'name=OdooProd_Dev' -F 'backup_format=zip' -F "backup_file=@$RESTORE_FILE" -F "neutralize_database=1" http://localhost:8065/web/database/restore
#howto-odoo How do do do hiracheral structures:
-
Client Import (backup between setup)
- Import the orgs
- Import the org sites under the orgs
- Finish making the test user pool with simple user/pass
- Find out how we link to draftbit
- Confirm the push method
- SNS Based ??
- SNS -> APNS
- SNS -> Google
- SNS -> Web
- ~~Using another push / notification ag (check Raindrop)~~
- SNS Based ??
- Initial use in pawnit mobile
- SSH to the odoo host
- cd to
/opt/docker/backups - Run
./dump-prod.sh
This will make an adhoc backup with a file name like odoo-prod-backup-adhoc-2025-06-03T23:58:23+00:00.zip
This can then be restored across to dev using ./restore-dev.sh with the filename. So ./restore-dev.sh odoo-prod-backup-adhoc-2025-06-03T23:58:23+00:00.zip
The backup script is also called from CRON with a --scheduled flag that writes the backup and removes anything older than 7 days.
cd /opt/docker/backups && dump-prod.sh --scheduled