Most of the water still moves down stream. You only pump upstream while the sun is out _and_ you have spare capacity from solar. Essentially you use the reservoir on the top of the dam as a battery. You charge it up when you have extra energy capacity.