Robocopy
Houder
houder@xs4all.nl
Thu Apr 2 17:47:00 GMT 2015
Hi Corinna,
Reference:
https://cygwin.com/ml/cygwin/2015-04/msg00008.html
- Re: Can I move Cygwin and Cygwin64 to a drive other than C: ?
Amazing that you had so much luck with robocopy ...
It did not surprise me, that it failed on me ...
Below 2 test cases: one using tar (success), the other using robocopy (failure).
(no worries: I will use tar)
Best regards,
Henri
@@# id # using an elevated shell (bash here, but the result is not different when using cmd)
uid=1000(Henri) gid=513(None) groups=513(None),1007(HelpLibraryUpdaters),544(Administrators),545(Users)
@@# mkdir /drv/d/d1 # testcase1 using tar
@@# mkdir /drv/d/d2 # testcase2 using robocopy
@@# pwd
/home/Henri
@@# cd /home
/home
@@# ls -l jvdwater/.bash_history # jvdwater is ANOTHER user, i.e. not Henri ...
-rw------- 1 jvdwater None 689 Nov 27 23:59 jvdwater/.bash_history
// test 1: -- success
@@# tar cf - ./jvdwater | ( cd /drv/e/d1; tar xpf - --same-owner )
@@# ls -l /drv/e/d1/jvdwater/.bash_history
-rw------- 1 jvdwater None 689 Nov 27 23:59 /drv/e/d1/jvdwater/.bash_history # Nice!
// test 2: -- failure
@@# robocopy $(cygpath -w /home/jvdwater) $(cygpath -w /drv/e/d2) /e /z /copyall /sl
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thu Apr 02 18:13:56 2015
Source : E:\Cygwin\home\jvdwater\
Dest : E:\d2\
Files : *.*
Options : *.* /S /E /COPYALL /Z /R:1000000 /W:30
------------------------------------------------------------------------------
7 E:\Cygwin\home\jvdwater\
New File 689 .bash_history
2015/04/02 19:13:56 ERROR 5 (0x00000005) Copying File E:\Cygwin\home\jvdwater\.bash_history
Access is denied.
Waiting 30 seconds... Retrying...
New File 689 .bash_history
2015/04/02 19:14:26 ERROR 5 (0x00000005) Copying File E:\Cygwin\home\jvdwater\.bash_history
Access is denied.
Waiting 30 seconds... <===== aborted with ctl-C
@@# // robocopy canNOT copy a file that cannot be accessed by Henri
@@# // ... even though he is using an elevated shell (bash or cmd) ...
----
http://stackoverflow.com/questions/24121046/difference-between-xcopy-and-robocopy
- Difference between xcopy and robocopy
=====
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list