Can anyone please teach me,

How can I copy a folder and all the sub folders and files in it, from a location A to a destination B. Replace the old content with this new one.

In another words, I trying to make a back up module for my data folder and files.