"It downloads the basebackup, unpacks it, sets a recovery.signal, ..."
Are you setting standby.signal or recovery.signal or both?
> asking for WAL files. It will read the database it has and determine > what the next WAL filename should be. And then it asks for it. And it > will keep asking for these hexadecimal filenames, 1 at a time, for as > long as the command or set of commands provided to "restore_command" > returns exit code 0. If the process receives any other exit code, it > stops recovery, switches timeline, and considers the database to be up > and running at the state its in. > > It's constantly asking "I want this file now" and the script I have as > the restore command will attempt to download it from the cloud. Then it > will attempt to unzip it and move it into place. If any of these steps > fails, I return exit code 1. >