Changes for page PostgreSQL
Last modified by Sebastian Marsching on 2023/03/22 23:25
From version 2.1
edited by Sebastian Marsching
on 2023/03/22 23:20
on 2023/03/22 23:20
Change comment:
There is no comment for this version
To version 4.1
edited by Sebastian Marsching
on 2023/03/22 23:23
on 2023/03/22 23:23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,7 +22,7 @@ 22 22 23 23 ```sh 24 24 docker volume create postgresql-data-old 25 -docker run --rm -it -v postgresql-data:/data -v postgresql-data-old:/data-old alpine mv /data/* /data-old/ 25 +docker run --rm -it -v postgresql-data:/data -v postgresql-data-old:/data-old alpine sh -c "mv /data/* /data-old/" 26 26 ``` 27 27 28 28 Now, we replace the PostgreSQL container with a new container using the image for the new PostgreSQL version. How this is done strongly depends on the setup (e.g. when using Salt, this might be as easy as changing the version number in the SLS and applying it). ... ... @@ -53,5 +53,3 @@ 53 53 docker container stop postgresql-old 54 54 docker volume rm postgresql-data-old 55 55 ``` 56 - 57 -