This is a very helpful article. I'd just like to suggest a correction. I'm not sure if things were different with 9.3, but I'm on 9.4, and the order you have suggested the commands to be run in ends up in errors.
This is what worked for me: https://gist.github.com/dhamaniasad/95f7d03b46a9c731f476
This is the order that is suggested in the Postgres docs too(http://www.postgresql.org/docs/9.4/static/continuous-archiving.html, 24.3.4),
This is a very helpful article. I'd just like to suggest a correction. I'm not sure if things were different with 9.3, but I'm on 9.4, and the order you have suggested the commands to be run in ends up in errors.
This is what worked for me: https://gist.github.com/dhamaniasad/95f7d03b46a9c731f476
This is the order that is suggested in the Postgres docs too(http://www.postgresql.org/docs/9.4/static/continuous-archiving.html, 24.3.4),