'To and Fro' type of motion is known as an Oscillatory Motion. It needed not be periodic and needed not have fixed extreme positions.
The force/torque acting in oscillatory motion (directed in the direction of equilibrium point) is known as restoring force/torque.