I used this command to set up a streaming replica and it worked perfectly.
I tried to run it to create an online backup of the master on that replica for backup purposes and it seems not to have worked as well.
I thought that streaming the WAL would eliminate the need to keep tons of WAL around, that since they were streamed concurrently with the file they would be in place. However, I got
pg_basebackup: could not get transaction log end position from server: ERROR: requested WAL segment 000000010000496F000000BF has already been removed
The ...backup file in the archive logs folder of the master looks like this"
although the --verbose output from pg_basebackup mentions starting the streaming, it doesn't mention the file names like it does for the datadir files.
Am I misunderstanding how this works? I have WAL archiving set up, so the files are available, but I wanted them included in the backup.