Thousands of exhausted, elated people fleeing their Arab and Asian homelands reached their dream destinations of Germany and Austria on Saturday, completing epic journeys by boat, bus, train and foot to escape war and poverty.

Before dawn, they clambered off a fleet of Hungarian buses at the Austrian border to find a warm welcome from charity workers offering beds and hot tea. Within a few more hours of rapid-fire aid, many found themselves whisked by train to the Austrian capital, Vienna, and the southern German city of Munich.

The surprise overnight effort eased immediate pressure on Hungary, which has struggled to manage the flow of thousands of migrants arriving daily from non-EU member Serbia. But officials warned that the human tide south of Hungary still was rising, and more westward-bound travelers arrived in Budapest within hours of an exodus from the capital's central rail station.

The apparent futility of stopping the migrants' progress west was underscored when Hungary announced Saturday that its bus service to the border had finished and would not be repeated. Almost immediately two groups hit the pavement to start walking to the border: about 200 people who walked out of an open-door refugee camp near the city of Gyor, and about 300 who left Budapest's central Keleti train station, the epicenter of Hungary's recent migrant crisis.

Austrian police spokesman Helmut Marban said more than 5,000 asylum seekers crossed into Austria from Hungary by the afternoon and most had traveled by train to Vienna or beyond. Germany said more than 600 of those have reached Munich. And officials in both Austria and Germany said the unregulated flow of people Saturday from Hungary meant that up to 10,000 might reach Austria by nightfall.

Hungarian authorities had spent most of the week trying to force those flooding into the country to report to government-run refugee centers to apply for asylum in their initial EU entry point as the 28-nation bloc's rules require. But thousands refused - some expressing fears that Hungary would deport or detain them indefinitely - and demanded free passage chiefly to Germany.

After a three-day standoff with police, thousands marched west Friday from the Keleti train station along Hungary's major motorway and camped overnight in the rain by the roadside. Hundreds more broke through police lines at a train station in the western town of Bicske, where police were trying to take them to a refugee camp, and blocked the main rail line as they, too, marched west.

advertisement | advertise on newsday

Austria and Germany made the breakthrough possible by announcing they would take responsibility for the mass of humanity that was already on the move west or camped out in their thousands at Keleti. Hungary on Tuesday had suspended train services from that station to Austria and Germany, compounding the build-up there as it sought to compel the visitors to register for asylum in Hungary.

Austrian Federal Railways said the arrivals, once they passed through hastily assembled border shelters and enjoyed refreshments, were being placed on trains to both Vienna and the western city of Salzburg and, for those who requested it, links onward to German cities. Hundreds more also were making their way independently to the border on foot.

The human rights watchdog Amnesty International welcomed the initiative to clear Hungary's humanitarian traffic jam.

"After endless examples of shameful treatment by governments of refugees and migrants in Europe, it is a relief to finally see a sliver of humanity. But this is far from over, both in Hungary and in Europe as a whole," said Gauri van Gulik, Amnesty's deputy director for Europe. "The pragmatic and humane approach finally applied here should become the rule, not the exception."

But Hungary's prime minister, Viktor Orban, told reporters the opposite was more likely. He said Hungary collected and drove the migrants to the border only because they were posing a public menace, particularly by snarling traffic and rail lines west of Budapest.

@Newsday

"It is unacceptable for them to paralyze traffic on the highway and they are putting their own lives at risk," Orban said at his ruling party's annual picnic in a village near Lake Balaton. "We proved that we were able to protect both their safety and that of Hungarians."

Orban said Hungary was determined to reduce the flow of foreigners trying to traverse the country en route to the wealthier, more immigrant-friendly West. He criticized European Union plans to reach a bloc-wide agreement at a summit Sept. 14 committing each nation to accept a new quota of foreigners to shelter, arguing that this would only spur more one-way traffic.

"What will it solve if we divide 50,000 or 100,000 migrants among us, when uncountable millions will be on the way?" Orban said.

When the first group of 400 arrived in Vienna, charity workers offered a wide choice of supplies displayed in separately labeled shopping carts containing food, water and packages of hygiene products for men and women. A mixed crowd of friends and Austrian onlookers cheered their arrival, with many shouting "Welcome!" in both German and Arabic. One Austrian woman pulled from her handbag a pair of children's rubber rain boots and handed them to a Middle Eastern woman carrying a small boy.

"Austria is very good," said Merhan Harshiri, a 23-year-old Iraqi who smiled broadly as he walked toward the supply line, where newcomers munched on fresh fruit. "We have been treated very well by Austrian police."

advertisement | advertise on newsday

"I am very happy," said Firas Al Tahan, 38, a laundry worker from the Syrian capital, Damascus. Seated beside him on the train station's concrete pavement were his 33-year-old wife, Baneaa, in her lap 1-month-old daughter Dahab, and beside them four other children aged 5 to 12, all smiling beside a cart containing green and red apples.

Earlier in jubilant scenes on the border, about 100 busloads of migrants and refugees disembarked on the Hungarian side of the border and walked a short distance into Austria, where volunteers at a roadside Red Cross shelter welcomed them with tea and handshakes. Many of the travelers slumped in exhaustion on the floor, evident relief etched on their faces.

Many had been awoken by friends at Keleti around midnight with news many didn't believe after days of deadlock: Hungary was granting their demand to be allowed to reach Austria and, for many, onward travel to Germany. Many feared that the scores of buses assembling at the terminal instead would take them to Hungarian camps for asylum-seekers, as the government previously insisted must happen. At times, it took extended negotiation at the bus doors to persuade people to climb aboard.

Keleti appeared transformed Saturday as cleaners used power washers to clear what had become a squalid urban refugee camp of approximately 3,000 residents sprawled about every courtyard and tunnel leading to Budapest's subway system. Only about 10 police remained to supervise a much-thinned presence of approximately 500 campers sleeping in pup tents or on blankets and carpets.

Keleti's transient population dwindled further in the afternoon as about 300 headed west through the city on foot. One marcher displayed a handwritten cardboard banner reading "Walking on foot to Austria." Unlike Friday, when police tried to block marchers initially, officers this time offered practical assistance in controlling traffic and providing directions to the marchers. They quickly crossed a major bridge spanning the Danube River as police in two vans and on two motorcycles stopped traffic to ease the trekkers' safe passage.

advertisement | advertise on newsday

Many travelers have spent months in Turkish refugee camps, taken long and risky journeys by boat, train and foot through Greece and the Balkans, and crawled under barbed wire on Hungary's southern frontier to a generally frosty welcome in this country with strong anti-immigrant sentiments.

In Berlin, German officials said they felt it was necessary to take responsibility given Hungary's apparent inability to manage the challenge. But they emphasized that Hungary, as an EU member and first port of call for many migrants, needed to do more to ensure that new arrivals filed for asylum there rather than travel deeper into Europe.

German government spokesman Georg Streiter told The Associated Press that Saturday's acceptance of migrants represented "an attempt to help solve an emergency situation. But we continue to expect Hungary to meet its European obligations."

German Chancellor Angela Merkel, who has led calls for other EU members to shelter more migrants as potential refugees, particularly those fleeing civil war in Syria, said in comments published Saturday that her country would observe no legal limit on the number of asylum seekers it might take.

Merkel told the Funke consortium of newspapers that "the right to political asylum has no limits on the number of asylum seekers."

"As a strong, economically healthy country we have the strength to do what is necessary" and ensure that every asylum seeker gets a fair hearing, she was quoted as saying.