Discussion Locked

help with a batch file using xcopy

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
can anyone help with the syntax for xcopy to write a batch file to copy the complete d:\ drive to f:\ for backup purposes and also a backup routine that only copies the modified files for daily backup?

3 replies

by vinnyd

The command to copy the entire drive for backup is:

xcopy d:\ f:\ /s/e/y

/s copies subfolders and files
/e copeis empty folders
/y says to overwrite exisiting files on F:

To do a modified only backup:

xcopy d:\ f:\ /s/e/y/m

/m only copies files with the archive bit set
and does reset it.

This discussion is closed to new replies.