Good posture
Keep a straight back as much, 90 degree knees and elbows.
Excercise
Work on moving your back a couple times per week, focus on building back and core muscles and mobility and flexibility of the back.
Changing position
When possible try to stand up at your desk from time to time, or go for short walks around the office. I like to drink lots of water so toilet breaks allow me to walk and stretch a little.
However if it continues and you seem to be getting warm sensations in your back I would recommend going to a doctor to get it checked out.
The best remedies against back pain are:
However if it continues and you seem to be getting warm sensations in your back I would recommend going to a doctor to get it checked out.