How long does back pain before periods generally last?

It varies. It does vary from person to person. If the discomfort is mild, you can use simple over the counter medications (unless your doctor told you not to), exercise regularly, and keep going. If your pain is severe (keeps you from your usual activities), see your gynecologist or pcp for a check-up.