cover (one's) bases
To ensure one's safety or success by dealing with every potentially problematic aspect of a situation or activity. A reference to baseball, in which the defensive players must make sure all bases (and baserunners who may occupy them) are accounted for. Primarily heard in US, South Africa. We have to be sure to cover our bases before the trial begins so that we aren't surprised by anything the prosecution throws our way.
cover all bases
To be well-prepared for every possible outcome. We need to cover all bases here—check every office and make sure it's been evacuated. I know I don't have the best grades, so I covered all bases by applying to 15 colleges.
base (up)on
To found or root something on a particular idea or occurrence. A noun can be used between "base" and "on" or "upon." My love of science is based upon an interest in experimentation. Unfortunately, she has a low opinion of me. I think she based it on our first meeting, which didn't go well.