It doesn't always work, but often enough, as Nozlee said, field-grown basil will take root in a glass of water and last far longer than it otherwise would. Cut off some from the bottom, stick it in water, and wait. Your hydroponic basil should already have roots, so you're ahead of the game.