vault backup: 2023-03-16 17:00:48

This commit is contained in:
Mitchel Admin committed 2023-03-16 17:00:48 +01:00
1 parent 4bbcf3e04b
commit 6410c6bacf
1 file changed
+58 -1
+58 -1
View File
@@ -6,4 +6,61 @@ tags:
## Native Test 🚧
Try to upgrade without checking out 15.0.
Try to upgrade without checking out 15.0.
### Prepare
Set env vars.
```bash
export ODOO_VERSION=16.0
export MODE=test
export PGHOST=localhost
export PGUSER=odoo
export PGPASSWORD=odoo
export DATABASE=erp
export NEW_DATABASE=${DATABASE}_${ODOO_VERSION}
export COMPANY=mint-system
alias odoo-upgrade="python <(curl -s https://upgrade.odoo.com/upgrade)"
```
Checkout 16.0 environment.
```bash
task checkout $ODOO_VERSION
```
Start local development environment.
```bash
task start db,native
```
### Restore
Download remote database to local folder.
```bash
odoo-backup -d $DATABASE -o tmp/$COMPANY/$DATABASE.zip ...
```
Clear filestore and restore database.
```bash
task drop-db $DATABASE
task clear-filestore $DATABASE
odoo-restore -f tmp/$COMPANY/$DATABASE.zip
```
### Upgrade
Run the upgrade script with option `test`.
```bash
odoo-upgrade $MODE -d $DATABASE -t 16.0 -r $NEW_DATABASE
```
### Verify
### Deploy