The below line leads me to believe xlog was renamed to wal for this utility:
"The write-ahead log files are written to a separate file named pg_wal.tar (if the server is a version earlier than 10, the file will be named pg_xlog.tar)."
Changing to -X will be compatible with both old and new versions
std_err output:
For some reason pg_basebackup removed the --xlog-method command switch in Postgres 10.
Note the docs for 9.6: https://www.postgresql.org/docs/9.6/app-pgbasebackup.html
-X method --xlog-method=method
Both options are listed
For Postgres 10 -X method --wal-method=method
The below line leads me to believe xlog was renamed to wal for this utility: "The write-ahead log files are written to a separate file named pg_wal.tar (if the server is a version earlier than 10, the file will be named pg_xlog.tar)."
Changing to -X will be compatible with both old and new versions
So instead of --xlog-method=stream -X stream