Recover Postgres Streaming Replication Slave from Archived Wal Logs
You set the restore_command, in recovery.conf, to copy the requested file (%f) from the archive directory to the server's directory (%p).