I found that support for pg_basebackup -R was in the old patch, and I haven't done anything for that yet.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных