Making backups is best done with a backup program.
To make it easy to understand, I shall use some metaphors. If you skip a step, it gets very bad. so detail is important.A backup program is like hiring a moving company to stuff your stuff into a van.
You stuff in smashed into a big box and sent somewhere and you have to unpack it. Ugh!
Use the right DOS command is more like the transporter in Star Trek. You get an exact duplicate in another place
When you wish to replicate an entire content of one folder tree to another folder, there is a method using XCOPY.
The destination folder should be empty if you put nit in a batch file.You must understand how XCOPY works. Try XCOPY /? for help.
You need to understand the idea of 'current folder' in DOS.
Let's say the D: drive has a folder named 'Boston' and is the place I want to start.
And the E: has a folder named 'Chicago' and is where I wnat to replicate all the streets and cars found in 'Boston' using a single command.
First I got to 'Boston' and look around.
D:
CD BOSTON
DIR
Looks good.
Now I look at 'Chicago and make sure it is empty. If not,
failure is probable.
E:
CD CHICAGO
DIR
OK. Coast is clear.
Now return to the source drive. Don't change anything.
D:
At this point the default directory on E: is 'Chicago' and I and now on 'Boston' on D:
Now I give this command at the DOS prompt.
XCOPY D: E: /E /H
This post is not intended to be annoying. Using DOS commands is not very intuitive. This is the best I know how to do at explaining. Use of metaphors makes things easier that using the technical names of things.
If XCOPY does not work for you, please come back.
Microsoft DOS xcopy command