pg_basebackup --pgdata=- --format=tar --label=bkp_server --progress --host=localhost --port=5432 --username=replicator --xlog-method=stream
Is that right? Once is finished, just need to restart postgres and set the recovery.conf.restored.command?
Cheers