It depends a little exactly what you put into it, but a dry rub made from ground spices should last up to a year when stored correctly. Spices don't tend to go bad in the traditional sense but do lose their flavor over time. However, if you do see any signs of mold or an unpleasant smell, it's a sign that something in the mix has spoiled and needs to be thrown out.