Is there scientific evidence to support drinking 8 glasses of water a day?

For years, we've been told that if you want to stay healthy, you should drink 6 to 8 glasses (about 2 liters) of water a day. But is this number really backed by science?