back and forth

[back and forth] {adv.} Backwards and forwards.

The chair is rocking back and forth.

The tiger is pacing back and forth in his cage.

Compare: TO AND FRO.