6 chown postgres:postgres /tmp/r
9 tar xvf /tmp/test-2021-09-11/base.tar.gz -C /tmp/r/
10 tar xvf /tmp/test-2021-09-11/pg_wal.tar.gz -C /tmp/r/pg_wal/
12 cp /var/lib/pgsql/10/recovery.conf /tmp/r/
13 vi /tmp/r/recovery.conf
15 cat postgresql.conf | grep -v archive_mode | grep -v archive_command > postgresql.conf.new && mv postgresql.conf.new postgresql.conf
17 su postgres -c '/usr/pgsql-10/bin/pg_ctl -D /tmp/r start -o "-p 5433"'
19 echo "STOP with: su postgres -c '/usr/pgsql-10/bin/pg_ctl -D /tmp/r stop'"