Unsolved
This post is more than 5 years old
5 Posts
0
9188
April 10th, 2012 19:00
Emcopy /xd switch not working
I am attempting to migrate a little over 12 TB of data as we move our data center. In the past we've used and become very proficient with robocopy. However, we found that although we can seed data relatively quickly with robocopy, it is too slow in doing a data refresh. It was suggested that we use emcopy instead.
My initial testing proved out that emcopy is extremely fast when compared to robocopy. However, I've run into a problem with excluding directories.
I need to be able to exclude certain directories from being purged from the destination when doing a refresh. But although emcopy recognizes my /xd switch and places the information in the "command information" section, it ignores it and purges out the directories on the target anyway.
I found that there were bugs with this function that were fixed in version 4.03 and again in version 4.11, but I'm using the most current version 4.14 and still can't make this work correctly.
Here is one of several commands I've tried as an example:
bin\emcopy D:\Robotest X:\RoboTestEMCOPY /s /o /de /purge /r:1 /w:1 /c /xd "X:\RoboTestEMCOPY\Cisco" /log:"D:\TestRun.log"
This command still ends up deleting the destination directory "Cisco".
I don't believe I have the syntax wrong because emcopy indicates exactly what I expect - that it will ignore the "Cisco" directory. Is there some tick to this or is this yet another bug?
bergec
275 Posts
0
April 11th, 2012 01:00
Have you tried to just specify the name "Cisco" (instead of the full path)?
But this will exclude any occurence of that directory in the tree
Claude
bergec
275 Posts
1
April 11th, 2012 04:00
May be I misunderstood your directory structure
I have the following:
c:\temp>ls -lR src
total 0
drwxrwxrwx 1 0 0 0 Apr 11 13:41 dir1
-rw-rw-rw- 1 0 0 0 Apr 11 13:40 f1
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 f2
src/dir1:
total 0
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 file1
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 file2
c:\temp>ls -lR dst
total 0
drwxrwxrwx 1 0 0 0 Apr 11 13:45 cisco
dst/cisco:
total 0
-rw-rw-rw- 1 0 0 0 Apr 11 13:42 cisco_f1
Then I run emcopy
c:\temp> emcopy src dst /s /o /de /purge /r:1 /w:1 /c /xd cisco
EMCOPY64 04.14
Copyright (C) 1999-2012, All Rights Reserved,
by EMC Corporation, Hopkinton MA.
System information
==================
Client OS : Microsoft Windows Seven Enterprise Edition, 64-bit Service Pack 1 (build 7601)
Server SRC : FRTGBERGECL2C 6.1
Server DEST : FRTGBERGECL2C 6.1
Command information
===================
Date : 11/04/2012 13:47:09
Source path : src\
Desti. path : dst\
Files and Dirs filter(s) : *
Directory options : /s /purge
Excluded Dir : cisco
List/Modify/Create options : /de
Security options: : /o
Retry options : /r:1 /w:1 /c
Processing the copy from src\ to dst\ ...
TH001 : 13:47:09 : dst\cisco\ -> Directory excluded from purge.
TH002 : 13:47:09 : src\dir1\
TH003 : 13:47:09 : src\f1
TH004 : 13:47:09 : src\f2
TH005 : 13:47:09 : src\dir1\file1
TH006 : 13:47:09 : src\dir1\file2
Copy engine Statistics
======================
File(s) copied : 4
File(s) recovered : 0
Directory(ies) created : 1
Security Descriptor Setting(s) done: : 5
Amount of copied byte(s) : 0 Byte(s) (0 Byte(s))
On target (dst), the Ciso dir is still there
c:\temp>ls -lR dst
total 0
drwxrwxrwx 1 0 0 0 Apr 11 13:45 cisco
drwxrwxrwx 1 0 0 0 Apr 11 13:47 dir1
-rw-rw-rw- 1 0 0 0 Apr 11 13:40 f1
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 f2
dst/cisco:
total 0
-rw-rw-rw- 1 0 0 0 Apr 11 13:42 cisco_f1
dst/dir1:
total 0
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 file1
-rw-rw-rw- 1 0 0 0 Apr 11 13:41 file2
Claude
buellerxb
5 Posts
0
April 11th, 2012 04:00
I just tried that Claude but it made no difference. Still deleted the excluded directory.
buellerxb
5 Posts
0
April 11th, 2012 06:00
I appreciate you testing that out yourself Claude and providing that feedback. Yes, you do have the directory structure correct. I used your exact syntax which was the same as I've tried with the exception of redirecting to a log file -- and it still deleted the destination directory called "Cisco".
Here are all the details and the resultant deletion of the excluded directory:
===================
Directory Structure
===================
D:\Batch\CBTS-ReplDump>dir x:\RoboTestEMCOPY
Volume in drive X is DATA
Volume Serial Number is 3C6E-1595
Directory of x:\RoboTestEMCOPY
04/11/2012 08:49 AM
04/11/2012 08:49 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
04/11/2012 08:47 AM
09/10/2010 11:27 AM 29 license.txt
09/03/2010 10:27 AM 90 licensekey.txt
03/08/2010 01:05 PM 4,011 readme.txt
==============
EMCopy Command
==============
bin\emcopy D:\HCOAF26\Drive-D\Inetpub X:\RoboTestEMCOPY /s /o /de /purge /r:1 /w:1 /c /xd Cisco
==========================
EMCopy Command Information
==========================
EMCOPY64 04.14
Copyright (C) 1999-2012, All Rights Reserved,
by EMC Corporation, Hopkinton MA.
System information
==================
Client OS : Microsoft Windows Seven Standard Edition, 64-bit Service Pack 1 (build
7601)
Server SRC : MULE 6.1
Server DEST : OHCONT04 6.1
Command information
===================
Date : 11/04/2012 08:47:17
Source path : D:\OHCOAF26\Drive-D\Inetpub\
Desti. path : X:\RoboTestEMCOPY\
Files and Dirs filter(s) : *
Directory options : /s /purge
Excluded Dir : Cisco
List/Modify/Create options : /de
Security options: : /o
Retry options : /r:1 /w:1 /c
....
TH034 : 08:47:17 : X:\RoboTestEMCOPY\Cisco\ -> Directory removed.
Copy engine Statistics
======================
File(s) copied : 62
File(s) recovered : 0
Directory(ies) created : 14
Security Descriptor Setting(s) done: : 76
Number of Purged file(s) : 245
Number of Purged directory(ies) : 52
Amount of copied byte(s) : 11 MB (11 978 121 Byte(s))
Estimated copy bitrate : 20124.678 KB/s
Global copy duration : 0.581
Elapsed time: secs: 01
=======
Results
=======
D:\Batch\CBTS-ReplDump>dir x:\RoboTestEMCOPY
Volume in drive X is DATA
Volume Serial Number is 3C6E-1595
Directory of x:\RoboTestEMCOPY
04/11/2012 08:50 AM
04/11/2012 08:50 AM
04/11/2012 08:50 AM
04/11/2012 08:50 AM
04/11/2012 08:50 AM
04/11/2012 08:50 AM
0 File(s) 0 bytes
6 Dir(s) 691,985,113,088 bytes free
Using the same syntax as you did, EMCopy deletes my "Cisco" directory. btw -- I have tried both the 32-bit and 64-bit versions with the same results.
What am I missing here?
buellerxb
5 Posts
0
April 11th, 2012 07:00
Solved!!
Well, mostly at least.
I was able to determine that emcopy (at least, 64-bit v4.14) is case sensitive in a non-sensical manner. At least the /xd switch is. Although the directory itself is cased, emcopy will only ignore it if you place it in ALL LOWER-CASE in the command.
You would think that emcopy would be (a) case insensitive, (b) error out with upper case characters, or (c) change the case internally before executing.
*sigh*
However, I'm still having a problem with excluding sub-directories. I'm sure there's some trick like the lower-case issue, but I haven't found it yet. For instance:
emcopy /s /o /de /purge /r:1 /w:1 /c /xd "cisco" "adbobecs5\cisco"
The above command will now properly exclude the destination "Cisco" directory but not the "adbobecs5\Cisco" sub-directory.
How do I now exclude a sub-directory?
bergec
275 Posts
0
April 12th, 2012 08:00
What it looks like is the the /XD switch only accepts a name (such as dir1 or dir2) and not a pathname
So if you use "/XD dir1" it will exclude any occurrence of dir1 in the tree
Hopefully next revision will be able to use patterns such as "/XD X:\mydir\dir1"
Claude
buellerxb
5 Posts
0
April 12th, 2012 10:00
That's what I was worried about. We've since opened a ticket with EMC but they haven't indicated that it's actually not a supported function...yet. And actually it won't ignore a directory anywhere in the path either. Tested and failed with that.
Thanks for all your feedback Claude. We're counting on EMC Support to work out the last couple issues.
E.Jocys
4 Posts
1
April 17th, 2018 06:00
It is 2018 and /xd bug is still here in EMCopy 4.20
Basically when using switch "/xd dir1 [Dir2]...[DirN]...". With trial and error I figured it out:
dir1 - value must be lowercase (even if original folder contains uppercase letters)
Dir2-DirN - values are case sensitive
Rainer_EMC
4 Operator
•
8.6K Posts
0
April 17th, 2018 11:00
did you open a service request and ask support to open a bug ?
thats how things get fixed