The possibilities are endless, and an example cannot cover all of them while still usefully serving as an example. There are canned systems for handling this more thoroughly, and you should look into using one of them.
Do you believe that the docs should point this out?
Currently there are about 18,000 words of what appears to be very thorough documentation about implementing replication, yet they do not refer the reader to tools like pgBackRest. When I post about the issues that I have had, the overwhelming view of the mailing lists is that pgBackRest is essential - yet this important advice is not conveyed to new users of this feature who are relying on the official documentation.
I think it might be a good idea to propose use of a canned solution, but I don't know how the community would feel about mentioning specific projects by name. And if we didn't mention any by name, I think it would be pretty awkward to advise to give.