I'm trying to copy some directories from a server before I restore from backup (my latest backup was corrupt, so I have to use an older one :( ). I'm in the Windows Recovery Environment and have access to the server's file system
G:\ and my backup media
C:\. But, since I'm more familiar with Linux, I'm having a bit of trouble with the command line in Windows, specifically
I want to copy multiple directories (maintaining the same directory structure) from G:\ to C:\ while excluding others (namely, the Windows and Program Files folders). I can't figure out the syntax for the
/XD option. I was hoping to do something like:
robocopy G: C:\backup /CREATE /XD "dir1","dir2", ...
NOTE: I want to clarify that I want to copy the actual files while maintaining the directory structure too. I just checked, and
/create only creates empty files. Weird.