Honestly, everyone's back pain is different. What works for some may not work for you.
I've had increased back pain over the last decade.
Gym work and many core exercises make mine worse, and I used to love the gym.
Certain stretches and some yoga helps me. One or two rest days as well.
I'm still able to climb a lot, thankfully.
Bike setup has 10cm drop.