The army and air force are using boats and helicopters to rescue thousands of people who are marooned.