What would be the most realistic way for human race to survive and thrive if Earth is about to be destroyed? Imagine there's some kind of an unavoidable event that will completely destroy Earth - not Nuclear war, but there just won't even be Earth after.
The possibilities I know of are:
Terra-forming on a nearby planet like Mars or on a moon of some nearby planet around the Solar system. The nice thing is we don't have to go far.
Reaching a nearby planet hospitable to people. It seems like they are light-years away, so I'm not sure how reaching them would be possible (perhaps freezing people, or just sending eggs and sperm and a device to incubate humans on arrival?), or if we even know of any that are completely OK for humans - may need to do some terraforming anyway.
Another possibility is to build big space stations, where you can live, and mine asteroids to build them further. This seems hard, as you need enough room to grow food, etc.
Am I missing any possibilities?
How long is it until we're able to do any of this?
Edit:
I understand that none of these proposals will happen within my lifetime. But is humanity within a 100 years of being able to spread out? a 1,000 years? 10,000 years? I really hope it's like 100 years. By total destruction I mean there won't be Earth any more at all. I am imagining a rogue planet on a collision course, although if humans have technology to move onto other stars, there might be technology to move/destroy rogue planet ... depends what kind of technology is really needed to accomplish some of these things.