Thousands of people have been evacuated from their homes in a region of eastern Germany where the Elbe river has flooded and burst through a dam, while a swollen Danube was approaching Budapest where soldiers and volunteers are building flood walls, officials said yesterday.