Questions to Continuous Archiving and Point-in-Time Recovery with PostgreSQL
you can use the pg_receivewal utility on the server that will receive the logs, it will help you with this problem.

see more at:

pg_receivewal - Doc official