Guardiola lauds battling Bayern
The champions went into the fixture at the Imtech Arena on the back of a 5-0 UEFA Champions League semi-final humiliation at the hands of Real Madrid, thus losing the chance to retain their European crown.
Real hammered Bayern 4-0 at Allianz Arena on Tuesday, with Guardiola and his football philosophy coming under intense scrutiny, but Bavarian side bounced back comfortably in Hamburg.
Mario Gotze notched twice and the visitors' other goals came from Thomas Muller and Claudio Pizarro, with the latter burying an audacious overhead kick.
Hamburg midfielder Hakan Calhanoglu pulled one back with the score at 3-0, but Bayern's quality shone through and Guardiola believes his side produced a battling display.
"We fought our way into the match," the former Barcelona boss said.
"The win was good for our rhythm in the preparation for the cup final in Berlin (Bayern play Borussia Dortmund in the DFB-Pokal final later this month)."
With Hamburg desperately searching for goals in order to keep alive their hopes of Bundesliga survival, Arjen Robben believes Bayern made the most of having more space in the second half.
He said: "In the first half we did quite well, but in the second we had slightly more room which we used well.
"We were very dangerous and scored good goals. We have the quality to do that."