RE: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread lists
This won't work...  ROBOCOPY /E D:\
\\backup_server\backup_share\original_server\D /XD
D:\Programs\Microsoft\RIS\Setup\English\Images\*\i386\  

Needs to look something like this...
ROBOCOPY D:\  \\backup_server\backup_share\original_server\D/XD
D:\Programs\Microsoft\RIS\Setup\English\Images\*\i386\  /E 

The above assumes that the \D after \original_server  is a folder
name.  Are you sure there are no spaces in the excluded folder?  If not,
you will need to enclose in quotes.

Cheers.


-Original Message-
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Tuesday, December 16, 2008 12:59 PM
To: NT System Admin Issues
Subject: ROBOCOPY /XD (exclude directory) wildcards

Hey all,

  With ROBOCOPY, is there a way to configure a directory exclude with
a full path with a wildcard in the middle of the path?  I want to do
something like this:

ROBOCOPY /E D:\ \\backup_server\backup_share\original_server\D
/XD
D:\Programs\Microsoft\RIS\Setup\English\Images\*\i386\

  If I try the above, ROBOCOPY refuses to run, saying Invalid
Parameter.

  The official docs just say /XD supports wildcards, but don't explain
any details.  From what little third-party info I can find, you can
say /XD *cache* to exclude any folder containing the substring
cache, but I'm not so sure about full paths.  I suspect ROBOCOPY
just doesn't do this, but I wanted a second opinion.

  The specific application is: I want to exclude the Remote
Installation Services i386 folders from a server-to-server backup,
since those can be trivially copied from CD again.  I want to preserve
other things, such as customizations under \$OEM$\.  I want to avoid
having to specify each and every image explictly, if I can, since I'm
sure one of these days we'll forget to add a new image name to the
exclude list, and accidentally backup a gigabyte of Windows install
CD.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


Re: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread Ben Scott
On Tue, Dec 16, 2008 at 3:25 PM, lists li...@bdtechnology.org wrote:
 ROBOCOPY D:\  \\backup_server\backup_share\original_server\D/XD
 D:\Programs\Microsoft\RIS\Setup\English\Images\*\i386\  /E

  That doesn't work either.  Same Invalid Parameter error (except
now it's a different parameter number, of course).

 The above assumes that the \D after \original_server  is a folder
 name.

  Yup, it is.  Folder exists.  Permission exists.

 Are you sure there are no spaces in the excluded folder?  If not,
 you will need to enclose in quotes.

  No spaces.  I just tried enclosing in quotes anyway, same result.

  If I don't use an asterisk wildcard it then will run, so I'm pretty
sure it's the attempt at a wildcard that's the problem.  I was mainly
wondering if someone had a poorly-documented trick that would make the
wildcard work.

  Guess not.  :)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


RE: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread NTSysAdmin
as far as I remember...*.* is what you need.

S

-Original Message-
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Tuesday, December 16, 2008 6:15 PM
To: NT System Admin Issues
Subject: Re: ROBOCOPY /XD (exclude directory) wildcards

On Tue, Dec 16, 2008 at 3:25 PM, lists li...@bdtechnology.org wrote:
 ROBOCOPY D:\  \\backup_server\backup_share\original_server\D/XD
 D:\Programs\Microsoft\RIS\Setup\English\Images\*\i386\  /E

  That doesn't work either.  Same Invalid Parameter error (except
now it's a different parameter number, of course).

 The above assumes that the \D after \original_server  is a folder
 name.

  Yup, it is.  Folder exists.  Permission exists.

 Are you sure there are no spaces in the excluded folder?  If not,
 you will need to enclose in quotes.

  No spaces.  I just tried enclosing in quotes anyway, same result.

  If I don't use an asterisk wildcard it then will run, so I'm pretty
sure it's the attempt at a wildcard that's the problem.  I was mainly
wondering if someone had a poorly-documented trick that would make the
wildcard work.

  Guess not.  :)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


Re: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread Ben Scott
On Tue, Dec 16, 2008 at 5:23 PM, NTSysAdmin ntsysad...@optimum.bm wrote:
 as far as I remember...*.* is what you need.

  FWIW, that didn't work either.  Same error.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


RE: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread lists
Is D shared?  Robocopy has issues with non shared folders.  Otherwise
name it explicitly; d:\d

List the entire command line here again please.

Cheers.

-Original Message-
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Tuesday, December 16, 2008 4:35 PM
To: NT System Admin Issues
Subject: Re: ROBOCOPY /XD (exclude directory) wildcards

On Tue, Dec 16, 2008 at 5:23 PM, NTSysAdmin ntsysad...@optimum.bm
wrote:
 as far as I remember...*.* is what you need.

  FWIW, that didn't work either.  Same error.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


Re: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread Ben Scott
On Tue, Dec 16, 2008 at 5:42 PM, lists li...@bdtechnology.org wrote:
 Is D shared?  Robocopy has issues with non shared folders.  Otherwise
 name it explicitly; d:\d

  The source D:\ is just a partition on the local hard disk drive.
The target D is a folder in a network share on another computer.

  But really,  it doesn't appear to be command line dependent.  For
example, set up a directory tree like this:

CD /D C:\
MKDIR BenTest\src BenTest\dst
CD BenTest\src
MKDIR foo\i386 foo\other bar\i386 bar\other baz\i386 baz\other

  Now this will copy everything:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E

  The below will copy everything, except for the i386 directories
under foo and bar.  baz will still be copied, as will the
other directories.

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\foo\i386
C:\BenTest\src\bar\i386

  But this does not work:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*\i386

  Neither does this:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*.*\i386

  Both yield Invalid Parameter #5.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~


RE: ROBOCOPY /XD (exclude directory) wildcards

2008-12-16 Thread lists
IIRC the syntax is source;  destination;  switches.  Put all the
switches at the end of the command line.  

-Original Message-
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Tuesday, December 16, 2008 6:30 PM
To: NT System Admin Issues
Subject: Re: ROBOCOPY /XD (exclude directory) wildcards

On Tue, Dec 16, 2008 at 5:42 PM, lists li...@bdtechnology.org wrote:
 Is D shared?  Robocopy has issues with non shared folders.
Otherwise
 name it explicitly; d:\d

  The source D:\ is just a partition on the local hard disk drive.
The target D is a folder in a network share on another computer.

  But really,  it doesn't appear to be command line dependent.  For
example, set up a directory tree like this:

CD /D C:\
MKDIR BenTest\src BenTest\dst
CD BenTest\src
MKDIR foo\i386 foo\other bar\i386 bar\other baz\i386 baz\other

  Now this will copy everything:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E

  The below will copy everything, except for the i386 directories
under foo and bar.  baz will still be copied, as will the
other directories.

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\foo\i386
C:\BenTest\src\bar\i386

  But this does not work:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*\i386

  Neither does this:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*.*\i386

  Both yield Invalid Parameter #5.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/  ~