To be honest, pesto is best when it's fresh. I would actually mix the pesto in with the pasta per bowl / individual serving. Then keep all the leftover pesto and pasta in separate sealed containers in fridge for a few days. The pesto keeps better that way.