File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4343 echo " Get the latest available basebackup ..."
4444 gosu postgres pghoard_restore get-basebackup --config pghoard_restore.json --site $PGHOARD_RESTORE_SITE --target-dir restore --restore-to-master --recovery-target-action promote --recovery-end-command " pkill pghoard" --overwrite " $@ "
4545
46- # remove custom server configuration (espacially the hot standby parameter)
46+ # remove custom server configuration (especially the hot standby parameter)
4747 gosu postgres mv restore/postgresql.auto.conf restore/postgresql.auto.conf.backup
4848
49- echo " Start the pghoard daemon ... "
50- gosu postgres pghoard --short-log --config /home/postgres/pghoard_restore.json &
51-
52- if [ -z " $RESTORE_CHECK_COMMAND " ]; then
49+ # If you want to get DB files outside of Docker container you can use mount to /home/postgres/restore_target
50+ if [ -d " restore_target " ] ; then
51+ mv restore/ * restore_target/
52+ elif [ -z " $RESTORE_CHECK_COMMAND " ]; then
5353 # Manual mode
5454 # Just start PostgreSQL
5555 echo " Start PostgresSQL ..."
You can’t perform that action at this time.
0 commit comments