pg migrate

This commit is contained in:
Janik von Rotz committed 2021-07-09 15:45:09 +02:00
1 parent 2be19d832f
commit d2333830f4
4 files changed
+39 -4

No files matched your search

+2 -2
View File
@@ -50,9 +50,9 @@ Folgende Module stehen in SelectLine zur Verfügung und sind Mandantenfähig:
Auftrag, CRM, Leistung verrechnen, PC-Kasse, Artikelmanager, EDI, RMA für Warenrücksendungen, Versandmodul, SL.mobile, Lagerbewirtschaftung, Webanwendung, Produktion, Finanzbuchhaltung, Anlagenbuchhaltung, Lohn,
Debitoren-/Kreditorenverwaltung, EBanking, Archivierung SelectLine, BDE, Zeit- und Serviceerfassung
> Die Preisliste steht hier zum Download: [[http://www.ddiag.ch/upload/pdf/dokumente/Preisliste%20SelectLine%20Software%20AG_ab%2008.05.2020.pdf]]
Die Preisliste steht hier zum Download: <http://www.ddiag.ch/upload/pdf/dokumente/Preisliste%20SelectLine%20Software%20AG_ab%2008.05.2020.pdf>
### Abas ERP
ABAS ERP ist eine deutsche ERP Software mit Modulen zu Themen wie Finanzen und Produktion. ABAS hat in der Schweiz eine Vertretung.
> Link zu ABAS ERP: [[https://abas-erp.com/de/]]
Link zu ABAS ERP: <https://abas-erp.com/de/>
+33
View File
@@ -0,0 +1,33 @@
# Migrating data via pg_dump
Step by step tutorial to migrate data from postgres 10 to 12.
Set env vars.
```bash
VOLUME=postgres_data08
APP_CONTAINER=odoo04
DB_CONTAINER=postgres08
DB_USER=odoo
```
Backup all databases and db volumes
```bash
docker exec $DB_CONTAINER pg_dumpall --username=$DB_USER > backup.sql
docker-volume-backup -a -c $APP_CONTAINER
docker-volume-backup -a -c $DB_CONTAINER
```
Stop datatabase and kill volume.
```bash
docker rm -f $DB_CONTAINER
docker volume rm $VOLUME
```
Deploy container with version 12 and restore data.
```bash
cat backup.sql | docker exec -i $DB_CONTAINER psql -U $DB_USER
```
+3 -1
View File
@@ -4,4 +4,6 @@
Website: <https://www.postgresql.org/>
[[Upgrade PostgreSQL Docker container]]
[[Upgrade PostgreSQL Docker container]]
[[Migrating data via pg_dump]]
+1 -1
View File
@@ -71,7 +71,7 @@ sudo rm -rf /var/lib/docker/volumes/odoo-development_odoo-db-data/_data
sudo mv 12/data /var/lib/docker/volumes/odoo-development_odoo-db-data/_data
```
Change posgres version.
Change postgres version.
`image: postgres:12`