That's the problem with colonization as an Earth back-up—even Antarctica and the Sahara Desert are more livable than any other body in the Solar System, by a long shot. Another Snowball Earth or a heavily desertified Earth would still be preferable to Mars. Throw in a fair amount of radiation, even—still better.
Cuts down significantly on the sorts of events for which a Martian back-up world is preferable to a shelter-in-place strategy.
Basically what we witness so far and will keep on seeing are spikes in all directions of the spectrums (e.g. record high temps, but also record lows; rain in the Death Valley and droughts in formerly wet areas). More critically, what little we've been able to gather on how fast climate eras shift from one to the next, it appears that whereas in-cycle change happens rather slowly (change within an era, because averages), climate era shifts could happen very quickly (because chain of events). We're talking going from a warm era to a glacial one within a few years, sometimes months even. A high speculation is that some thongs might upset the Gulfstream and you'd observe climate evolve from year to year.
Still probably higher than extinction from war in the same time frame.
Life on earth could end in the next five minutes. :) https://www.youtube.com/watch?v=RLykC1VN7NY
I don't see the "we must migrate now" types saying "lets put migration away for a while so we can better build anti-asteroid solutions and detection systems."
Arguably, we're just a couple launches and deployments of mass drivers away from fixing this issue. This is all known tech that could be deployed relatively quickly. A self-sustaining Martian colony is probably hundreds of years away considering the work it would take to terraform the planet.
. . . actually I have absolutely no idea how you would practically do that at all.
But I have heard the possibility of a GRB discussed seriously as a motivator for expanding, not just through the solar system, but through the galaxy.