This is an excellent approach! Thank you!
One issue on restoration server.
./launcher logs app
2020-06-18 13:33:56.434 UTC [127] FATAL: data directory “/shared/postgres_data” has wrong ownership
2020-06-18 13:33:56.434 UTC [127] HINT: The server must be started by the user that owns the data directory.
./run: 3: echo: echo: I/O error
2020-06-18 13:33:57.448 GMT [128] LOG: skipping missing configuration file “/shared/postgres_data/postgresql.auto.conf”
That could be due to some missing tar
options? Added -p and -s during extraction but didn’t help.
original server (outside docker):
ls -la /var/discourse/shared/standalone/postgres_data/
drwx------ 7 messagebus messagebus 4096 May 25 13:16 base
original server (inside docker (./launcher enter app
)):
ls -la /var/lib/postgresql/10/main/
drwx------ 5 root postgres 4096 May 25 23:28 base
restoration server outside docker:
ls -la /var/discourse/shared/standalone/postgres_data/
drwx------ 7 messagebus messagebus 71 May 25 11:16 base
restoration server inside docker:
drwx------ 5 root postgres 41 May 25 23:28 base
./launcher rebuild app
would fix it but that’s besides the point.
Any idea?