Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

Robocopy Version XP010 - Excluding Multiple Directories using /XD

$
0
0

I'm attempting to use Robocopy to routinely copy data between 2 servers.  In the file structure being copied there are several folders + their associated sub-folders e.g DfsrPrivate and Projects\Archived for this example I don't want to copy.

 

I've attempted to use the switches  /XD DfsrPrivate /XD Projects\Archived

/XF is also used to exclude all .bak files. (referenced after the 2 /XD switches)

 

This results in the log file header below:


-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
-------------------------------------------------------------------------------

  Started : Wed Dec 05 00:51:28 2007

   Source : \\[Servername]\Data\
     Dest : D:\Data\

    Files : *.*
    
Exc Files : *.bak
    
 Exc Dirs :  DfsrPrivate
     Projects\Archived
     
     
  Options : *.* /S /E /COPYALL /ZB /MAXAGE:1 /R:10 /W:30

------------------------------------------------------------------------------

 

This results in the DfsrPrivate being excluded but Projects\Archived and all the subfolders below are not.

 

Has any one had experience with trying this, and had success?

Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>