vault backup: 2025-03-13 09:27:04

This commit is contained in:
Janik von Rotz committed 2025-03-13 09:27:04 +01:00
1 parent 6b717f8b2d
commit 1a15bbe2ac
3 files changed
+88 -25

No files matched your search

+58 -19
View File
@@ -6,40 +6,79 @@ tags:
Emoji-Index.
## 🎒
## Status
## 🏁
### 🚧
## 🧑‍💻
Entwurf
## 💬
### 🎒
## ✅
Backlog
## ♻️
### 🏁
## ⚪
Bereit
## ⚫
### 🧑‍💻
## 🔴
In Arbeit
## 🔵
### 💬
## 🟤
Feedback
### ✅
## 🟣
Erledigt
## 🟢
### ♻️
## 🟡
Postlog
## 🟠
## Farben
## ⭕
### ⚪
## ❓
Weiss
## ❌
### ⚫
## 🚧
Schwarz
### 🔴
Rot
### 🔵
Blau
### 🟤
Braun
### 🟢
Grün
### 🟡
Gelb
### 🟠
Orange
## Umgebung
### 🔬
Test
### 🛠️
Entwicklung
### 🚀
Produktion
+23 -3
View File
@@ -29,7 +29,7 @@ Backup database.
ssh -p "$PORT" "$SERVER" sudo docker-postgres-backup -c "$POSTGRES_CONTAINER" -d "$DATABASE"
```
Restore database.
Restore database if target postgres container is different.
```bash
ssh -p "$PORT" "$SERVER" sudo docker-postgres-restore -c "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -f "/var/tmp/$POSTGRES_CONTAINER/odoo.sql"
@@ -43,12 +43,18 @@ Optional: Drop the target database.
ssh -p "$PORT" "$SERVER" sudo docker-postgres-drop -c "$TARGET_POSTGRES_CONTAINER" -d "$TARGET_DATABASE"
```
Run upgrade script.
Run upgrade script in test mode.
```bash
ssh -p "$PORT" "$SERVER" sudo docker-odoo-upgrade -c "$TARGET_POSTGRES_CONTAINER" -h "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -s "$ODOO_VERSION" -n "$TARGET_DATABASE" -t "$TARGET_ODOO_VERSION"
```
Run upgrade script in production mode.
```bash
ssh -p "$PORT" "$SERVER" sudo docker-odoo-upgrade -c "$TARGET_POSTGRES_CONTAINER" -h "$TARGET_POSTGRES_CONTAINER" -d "$DATABASE" -s "$ODOO_VERSION" -n "$TARGET_DATABASE" -t "$TARGET_ODOO_VERSION" -m production
```
Copy filestore.
```bash
@@ -72,4 +78,18 @@ ssh -p "$PORT" "$SERVER" docker-odoo-uninstall -c "$TARGET_ODOO_CONTAINER" -d "$
## Testing
==Define test cases.==
==Define test cases.==
## Production
Rename the databases.
```bash
ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$POSTGRES_CONTAINER" -s "$DATABASE" -t "${DATABASE}-tmp"
ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$TARGET_POSTGRES_CONTAINER" -s "$TARGET_DATABASE" -t "$DATABASE"
ssh -p "$PORT" "$SERVER" docker-postgres-rename -c "$POSTGRES_CONTAINER" -s "${DATABASE}-tmp" -t "$TARGET_DATABASE"
```
::: tip
The filestore doesn't have to be renamed as we copied it in the upgrade step.
:::
+7 -3
View File
@@ -24,7 +24,7 @@ Working steps:
```
Guten Tag
Diese Odoo Installation wird innerhalb der nächsten zwei Stunden von Version 16.0 auf 18.0 aktualisiert.
Diese Odoo Installation wird innerhalb der nächsten Stunde von Version 16.0 auf 18.0 aktualisiert.
Wir bitten Sie während dieser Zeit keine Bearbeitungen in Odoo vorzunehmen. Alle Änderungen ab jetzt werden nicht in der aktualisierten Odoo Installation sein.
@@ -33,7 +33,10 @@ Mit freundlichen Grüssen
Mint System Team
```
* Execute the production upgrade according to the upgrade playbook.
* Execute the production upgrade according to the playbook
* Switch `$ALIAS` and `$ALIAS_upgrade`
* Move database and backup config
* Enable proxy redirect to new instance
* Message to customer:
```
@@ -48,4 +51,5 @@ Wir bitten Sie die Odoo Installation zu verfizieren und allfällige Fehler zu me
Mit freundlichen Grüssen
Mint System Team
```
```