* Robocopy
@ 2015-04-02 17:47 Houder
2015-04-03 11:34 ` Robocopy Corinna Vinschen
2015-04-03 11:54 ` Robocopy Bryan Berns
0 siblings, 2 replies; 5+ messages in thread
From: Houder @ 2015-04-02 17:47 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Robocopy
2015-04-02 17:47 Robocopy Houder
@ 2015-04-03 11:34 ` Corinna Vinschen
2015-04-03 13:02 ` Robocopy Houder
2015-04-03 11:54 ` Robocopy Bryan Berns
1 sibling, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2015-04-03 11:34 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
Hi Henri,
On Apr 2 19:47, Houder wrote:
> 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: ?
Would you mind to keep the mail threading intact and reply to the issue
rather than creating a new thread? It's a bit puzzeling and not easy
to follow for people looking for solutions. Thank you.
> Amazing that you had so much luck with robocopy ...
>
> It did not surprise me, that it failed on me ...
> [...]
Hmm, weird. I used it successfully to copy complete Cygwin
installations from one machine to another.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Robocopy
2015-04-02 17:47 Robocopy Houder
2015-04-03 11:34 ` Robocopy Corinna Vinschen
@ 2015-04-03 11:54 ` Bryan Berns
2015-04-03 13:09 ` Robocopy Houder
1 sibling, 1 reply; 5+ messages in thread
From: Bryan Berns @ 2015-04-03 11:54 UTC (permalink / raw)
To: cygwin
On Thu, Apr 2, 2015 at 1:47 PM, Houder <houder@xs4all.nl> wrote:
> 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
ROBOCOPY is very reliable and it's actually what I use to have folks
"install" Cygwin on our enterprise systems (i.e. I setup a master
replica of the install and they ROBOCOPY it down to their machines).
It works without fail unless they have a files in use. If you throw
in /R:0, do you see any other files with access denied? Might be a
good datapoint to confirm it's everything and not something specify
about bash_history.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Robocopy
2015-04-03 11:34 ` Robocopy Corinna Vinschen
@ 2015-04-03 13:02 ` Houder
0 siblings, 0 replies; 5+ messages in thread
From: Houder @ 2015-04-03 13:02 UTC (permalink / raw)
To: cygwin
> Hi Henri,
>
> On Apr 2 19:47, Houder wrote:
>> 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: ?
>
> Would you mind to keep the mail threading intact and reply to the issue
> rather than creating a new thread? It's a bit puzzeling and not easy
> to follow for people looking for solutions. Thank you.
>
>> Amazing that you had so much luck with robocopy ...
>>
>> It did not surprise me, that it failed on me ...
>> [...]
>
> Hmm, weird. I used it successfully to copy complete Cygwin
> installations from one machine to another.
:-) one has to add the /B option to your invocation of robocopy ...
From robocopy /?
...
::
:: Copy options :
::
...
/B :: copy files in Backup mode. <==== SeBackup privilege ?????
Corinna, you are the expert !!!!! Your privilege to explain all this :-)
Henri
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Robocopy
2015-04-03 11:54 ` Robocopy Bryan Berns
@ 2015-04-03 13:09 ` Houder
0 siblings, 0 replies; 5+ messages in thread
From: Houder @ 2015-04-03 13:09 UTC (permalink / raw)
To: cygwin
> On Thu, Apr 2, 2015 at 1:47 PM, Houder <houder@xs4all.nl> wrote:
>> 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
>
> ROBOCOPY is very reliable and it's actually what I use to have folks
> "install" Cygwin on our enterprise systems (i.e. I setup a master
> replica of the install and they ROBOCOPY it down to their machines).
> It works without fail unless they have a files in use. If you throw
> in /R:0, do you see any other files with access denied? Might be a
> good datapoint to confirm it's everything and not something specify
> about bash_history.
As the tar command was up to the job, I started to think ...
At some time in past, Corinna told this forum that Cygwin enabled the
SeBackup and SeRestore privileges ...
As I remembered that, I decided to take a second look at the output of
robocopy /?
See my reply to Corinna's reaction.
Henri
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-03 13:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02 17:47 Robocopy Houder
2015-04-03 11:34 ` Robocopy Corinna Vinschen
2015-04-03 13:02 ` Robocopy Houder
2015-04-03 11:54 ` Robocopy Bryan Berns
2015-04-03 13:09 ` Robocopy Houder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).