pg_basebackup with tablespaces defined
You will find a mapping file named tablespace_map in your base.tar file.

Here's the documentation:


  When tar format mode is used, it is the user's responsibility to unpack each tar file before starting the PostgreSQL server. If there are additional tablespaces, the tar files for them need to be unpacked in the correct locations. In this case the symbolic links for those tablespaces will be created by the server according to the contents of the tablespace_map file that is included in the base.tar file.


Link: https://www.postgresql.org/docs/9.6/static/app-pgbasebackup.html