Unsolved

This post is more than 5 years old

1 Rookie

 • 

64 Posts

1729

November 15th, 2019 10:00

EMCopy Problem with Folder Removal on Diff Copy

Summary: Using emcopy64 v 4.20.2.0 (latest?) to mirror after making a first copy pass, won't delete folder on destination that no longer exist on source (when NTFS permissions are a certain way).

Details:

  1. I make the first copy pass of the folder structure.
  2. My account (local admin account) does not have permission to access certain folders in that structure; however, emcopy is able to copy them anyway by asserting the backup privilege that administrators have.
  3. A user deletes subfolder X in that structure on source, and this folder is one of the ones that my account does not have permission to access.
  4. I make the second copy pass of the folder structure to pick up changes.
  5. Emcopy returns an error “directory removing failed” when trying to delete subfolder X from the destination to mirror the change made at the source.
  6. Other tools, such as robocopy, fastcopy, and beyond compare are able to delete inaccessible folders like subfolder X, by asserting the restore privilege. However, I need to use emcopy because it’s the only tool where difference copies between Windows and Isilon work correctly.
  7. The command line switches I’m using are: emcopy64.exe “source path” “destination path” /secforce /o /s /de /sd /c /i /r:0 /w:0 /purge /preserveroot /sdd /stream /log+:"log path"

Anything conflicting that anyone can see with those combinations of switches?  Has anyone seen this or can duplicate?

1 Rookie

 • 

64 Posts

November 19th, 2019 09:00

Did... rep is looking into it but says EMCopy has "no support path".  Confirmed we are using the latest.  He replied that it appears to be working as designed but to be honest, this doesn't make too much sense to me and I'm thinking he is misunderstanding the root issue (seems to be only affecting removing directories on the second pass, not files at any point, when permissions are set so that the admin doing the copy is normally not permitted to access that directory).  I admit, it's a pretty specific circumstance when the issue comes up, but it's unfortunate since the EMCopy tool is so useful in other cases.

Here's what he replied in case I'm the one misunderstanding his position.  I don't have access to the link he provided, just going off his summary that he included:

***

I found the following article here
https://emcservice--c.visualforce.com/apex/KB_BreakFix_clone?id=kA2j0000000QiJb

The article states the following, which I believe fits your criteria regarding permissions to the directory.
-----------------------------------------------------------------------------------------------------------------------------------
From version 4.04 onward, stricter checks have been introduced to EMCOPY in order to prevent copying unstable files, for example, files that are being modified at the time of copying. The reason for introducing this change is that copying files that are in the process of being edited may lead to an error during copy (best case) or to incorrect file content (worst case) without any notification to the operator. EMCOPY will retry the copy, depending on the EMCOPY parameters used. If all copy retries fail as well, EMCOPY will try to delete the destination file in order to not leave any partially copied file on the destination.
EMCOPY will only try to delete a file on the destination if it encountered an error during the copy that led to an incomplete copy, that is, an invalid copy on the destination. If this deletion succeeds, a new differential copy can be run to copy any file across that couldn't be copied previously. See 71643 for details.
The message "DELETION FAILED" shown above means that EMCOPY could not delete the destination file after it failed to fully copy it. Reasons for this are environmental, for example, because another process is using the same file, the destination is no longer reachable, EMCOPY is not run with the correct permissions.
-----------------------------------------------------------------------------------------------------------------------------------

So it appears that it is working as designed. This does feel like a potential request for enhancement from your end. I have been unsuccessful in finding a support path for EMCopy, but if you want me to continue to pursue that I can.

Otherwise, the current version of EMCopy you are running is the most current I can find, so you seem up to date on that.

3 Apprentice

 • 

625 Posts

November 19th, 2019 09:00

Make an SR since EMCopy is supported.

No Events found!

Top