As long as you place a thin layer of oil over top of the pesto, you should be able to store it in the fridge up to two weeks.