to go back exactly the way you have come:
After a few minutes, he turned around and began to retrace his steps.
to repeat exactly the same journey that someone else has made:
We shall be retracing the route taken by Marco Polo.
to find out where someone went:
an investigation to retrace the dead man's last known movements