I actually fractured my back when I was a teenager so I know a lot about this. It is something I deal with on a daily basis.
I take some kind of pain relievers whenever my back starts to act up on me. That is a sign that I am sleeping in the wrong position or I am gaining weight.
Say that you are riding a lot and you get back pains ever now and then, well the pain relievers will help a bit, but the most important thing to do is to stop to alleviate the pressure, a light stretch, and then back on the bike you go. For me it's not going away and a problem I will have for life. Like anything I stop to check it, give it a slight rest, and I get moving again and not let it affect me life.