Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Windows 2003 Server (TECHNET) > robocopy to exclude folder
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 13th July 07:44
ckwong19802003@yahoocomrlm
External User
 
Posts: 1
Default robocopy to exclude folder


hi

Is anyone outhere know how to use robocopy with the /XD?
  Reply With Quote


  sponsored links


2 13th July 07:44
carlo cacciafesta
External User
 
Posts: 1
Default robocopy to exclude folder


If, for example, you want to mirror the directory "C:\Repository" to
"\\server2\Repository" excluding "\\server2\Repository\Ex" from being deleted
(since it isn't present in C:\Repository) use thefollowing command:

robocopy.exe "C:\Repository" "\\server2\Repository" /MIR /XD
"\\server2\Repository\Ex"

Let me know if this answers your question. Eventually post a more detailed
question.

Regards,

Carlo
  Reply With Quote
3 13th July 07:44
ckwong19802003@yahoocomrlm
External User
 
Posts: 1
Default robocopy to exclude folder


hi,

i run these command

it seem when i check on the 10.208.10.1 i still get the virtual machine
content been replicated

robocopy \\10.208.10.39\pc1$\ \\10.208.10.1\pc2$ /s /v /r:1 /w:1 /eta /XD
d:\pc1\virtual_machine /S /purge
  Reply With Quote
4 13th July 07:44
carlo cacciafesta
External User
 
Posts: 1
Default robocopy to exclude folder


It's because you write the path in the wrong way. Assuming that
"virtual_machine" is in 10.208.10.39 and that "\\10.208.10.39\pc1$" =
"d:\pc1", try this:

robocopy \\10.208.10.39\pc1$\ \\10.208.10.1\pc2$ /s /v /r:1 /w:1 /eta /XD
\\10.208.10.39\pc1$\virtual_machine /S /purge

Regards,

Carlo
  Reply With Quote
5 13th July 07:44
ckwong19802003@yahoocomrlm
External User
 
Posts: 1
Default robocopy to exclude folder


hi

it mean that it need the full unc izzit?i have test your way and also if i
use these
robocopy \\10.208.10.39\pc1$\ \\10.208.10.1\pc2$ /s /v /r:1 /w:1 /eta /XD
virtual_machine /S /purge

that also working,do the /XD realy look to every each folder and try to
search for the name of the folder?
  Reply With Quote
6 13th July 07:44
carlo cacciafesta
External User
 
Posts: 1
Default robocopy to exclude folder


Yes, you can only insert the folder's name and it will be excluded, as
results from your test. If you don't use the UNC path, every directory
matching that name will be excluded and, in some cases, you might want not to
exclude all of them but only one or some: in this case you should write in
the command each of them.

Regards,

Carlo
  Reply With Quote
7 13th July 07:45
ckwong19802003@yahoocomrlm
External User
 
Posts: 1
Default robocopy to exclude folder


hi,


Thank you very much for the information
  Reply With Quote
8 13th July 07:46
ckwong19802003@yahoocomrlm
External User
 
Posts: 1
Default robocopy to exclude folder


hi,


Thank you very much for the information
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666