I've been trying to move out of an individual contributor role for a while, but it's always the same story: 1) We need you to build this super-important thing; you're too valuable as a developer right now 2) We're growing fast, we need experienced managers right now (or 2A: Your team is performing at a high level, we don’t need managers) 3) We're cutting back, we don't have a position for you right now. And in my most recent case 4) We're shutting the company down, good luck.
I find most places only want experienced managers, yet the industry as a whole is terrible at providing any sort of career development path for developers.
OP is right - make a backup plan now. If you want to move into management, start laying that groundwork BEFORE you're ready to move on.
Get good at your job. Get good at the company. Learn the domain and drink the koolaid. And, when the team grows, and they're looking for managers, nominate yourself to begin transitioning. You'll do both jobs and straddle the line for a while but eventually you'll have job experience managing a team.