permissions for robocopy..

i am an admin and ran the below in 'right click' right as admin on a cmd shortcut.. yet i got this error: could you see where could be issue (admin not having auditing right, inspite of right click 'run as admin'?
~~~
   Source : c:\users\
     Dest : z:\RCB\

    Files : *.*
          
 Exc Dirs : AppData
          
  Options : *.* /V /S /E /COPYALL /PURGE /MIR /ZB /NP /XJ /XA:SH /MT:32 /R:5 /W:15

------------------------------------------------------------------------------

ERROR : You do not have the Manage Auditing user right.
*****  You need this to copy auditing information (/COPY:U or /COPYALL).

       Simple Usage :: ROBOCOPY source destination /MIR

             source :: Source Directory (drive:\path or \\server\share\path).
        destination :: Destination Dir  (drive:\path or \\server\share\path).
               /MIR :: Mirror a complete directory tree.

    For more usage information run ROBOCOPY /?

                                                         
****  /MIR can DELETE files as well as copy them !
LVL 5
25112Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Usually, c:\users is not accessible, using /Mir /purge might be conflicting.

/s and /e I think are similar.

Try the fewer option

Robocopy c:\users z:\RCB /copyall /Mir /r:5 /w:15 /zb /L
See if that runs through and displays the correct info, if it does, remove the /L
0
25112Author Commented:
ok, when i tried with /L option:
C:\Users\mosv>Robocopy c: \users z:\RCB /copyall /Mir /r:5 /w:15 /zb /L
i get the below: why is it confused on parameter 3? it is trying to copy default profile (C:\Users\mosv\)to the root directory(C:\Users\mosv\)? while i wanted to move C:\Users to z drive. (z drive is available as can be seen in the script below)
-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Sat Jun 27 20:14:17 2015

   Source - C:\Users\mosv\
     Dest - C:\users\

    Files :
  Options : /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

ERROR : Invalid Parameter #3 : "z:\RCB"

       Simple Usage :: ROBOCOPY source destination /MIR

             source :: Source Directory (drive:\path or \\server\share\path).
        destination :: Destination Dir  (drive:\path or \\server\share\path).
               /MIR :: Mirror a complete directory tree.

    For more usage information run ROBOCOPY /?


****  /MIR can DELETE files as well as copy them !

C:\Users\mosv>
~~~~~~~~~~~~~
C:\Users\mosv>dir z:\
 Volume in drive Z has no label.
 Volume Serial Number is 76B2-6274

 Directory of z:\

06/27/2015  07:07 PM    <DIR>          .
06/27/2015  07:07 PM    <DIR>          ..
06/27/2015  07:07 PM    <DIR>          RCB
               0 File(s)              0 bytes
               3 Dir(s)  646,300,110,848 bytes free

C:\Users\mosv>
0
arnoldCommented:
In my post, I had a typo I had hoped I could fix, there is a space between c:\ and users this leads to the error c:\ source  and users in the current directory as the destination with z:\RCB is out of place for a pattern match.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

25112Author Commented:
I perhaps had to give the full network path for z drive: please see below: why does it list only handful while there are 10s of 1000s of files in c:\users folder?
~~~
C:\Windows\system32>robocopy c:\users \\pr31\Users\Public /XD AppData /XJD /
R:5 /W:15 /MT:32 /L

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Sat Jun 27 20:37:27 2015

   Source : c:\users\
     Dest : \\pr31\Users\Public\

    Files : *.*

 Exc Dirs : AppData

  Options : *.* /L /COPY:DAT /XJD /MT:32 /R:5 /W:15

------------------------------------------------------------------------------

        *EXTRA Dir        -1    \\pr31\Users\Public\Documents\
        *EXTRA Dir        -1    \\pr31\Users\Public\Downloads\
        *EXTRA Dir        -1    \\pr31\Users\Public\Favorites\
        *EXTRA Dir        -1    \\pr31\Users\Public\Libraries\
        *EXTRA Dir        -1    \\pr31\Users\Public\Music\
        *EXTRA Dir        -1    \\pr31\Users\Public\Pictures\
        *EXTRA Dir        -1    \\pr31\Users\Public\Recorded TV\
        *EXTRA Dir        -1    \\pr31\Users\Public\Videos\
          *EXTRA File             262144        NTUSER.DAT
          *EXTRA File               5120        NTUSER.DAT.LOG1
          *EXTRA File                  0        NTUSER.DAT.LOG2
          *EXTRA File              65536        NTUSER.DAT{6c8babd1-9d1b-11e4-b5
68-e4d53dd2b029}.TM.blf
          *EXTRA File             524288        NTUSER.DAT{6c8babd1-9d1b-11e4-b5
68-e4d53dd2b029}.TMContainer00000000000000000001.regtrans-ms
          *EXTRA File             524288        NTUSER.DAT{6c8babd1-9d1b-11e4-b5
68-e4d53dd2b029}.TMContainer00000000000000000002.regtrans-ms
          *EXTRA File              65536        NTUSER.DAT{707be76d-8f08-11e4-ae
98-e4d53dd2b029}.TM.blf
          *EXTRA File             524288        NTUSER.DAT{707be76d-8f08-11e4-ae
98-e4d53dd2b029}.TMContainer00000000000000000001.regtrans-ms
          *EXTRA File             524288        NTUSER.DAT{707be76d-8f08-11e4-ae
98-e4d53dd2b029}.TMContainer00000000000000000002.regtrans-ms
                           1    c:\users\

------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         3         0         3         0         0         8
   Files :         1         0         1         0         0         9
   Bytes :       174         0       174         0         0    2.37 m
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00

   Ended : Sat Jun 27 20:37:28 2015

C:\Windows\system32>
0
arnoldCommented:
Add the /E flag
Recursion is not enabled in your example./E will tell it to work in every folder even if it is empty.
0
25112Author Commented:
that helped.. it brought a listing now..
it skipped one file, it says.. is it possible to filter to see which one file is it skipping?
------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :      1602      1553        49         0         0         8
   Files :     29559     29558         1         0         0         9
   Bytes : 118.983 g 118.983 g       174         0         0    2.37 m
   Times :   0:00:27   0:00:00                       0:00:00   0:00:27

   Ended : Sat Jun 27 20:56:31 2015

C:\Windows\system32>
0
arnoldCommented:
There are too many files,
If you rerun the process it should error/retry to transfer likely the ntuser.dat if your username as it is in use and can not be accessed.
0
25112Author Commented:
ok.
in actual mode, if it encounters this kind of error, will it rollback all transactions on an error or will it commit the transactions upto that point.. is that a parameter setting?
0
arnoldCommented:
It is not transactional, it will copy what it can and based on the /r*/w number of attempts and delay between each one will be the delay when it encounters a file it can not copy.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
The initial error is brought up because at least one file in C:\Users has File Auditing enabled (to record all changes applied to it). With /COPYALL you try to transfer that to the target folder, and do not have sufficient privileges on the target folder. You can use /COPY:DATS to copy less properties.
0
25112Author Commented:
ok. when i did in real mode: i got the below (did not use COPYALL mode).. is it possible now to restart where it left off? (due to network issue, it failed after 2.5 hrs)
~~~~
the mode i used for this were
/XD AppData
/XJD
/R:5 /W:15
/MT:32
/E
~~~~
               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :      1602       103      1499         0         0         8
   Files :     29559      5369      6594         0     17596         9
   Bytes : 118.983 g  46.237 g   9.746 g         0  62.999 g    2.37 m
   Times :  78:06:28   2:36:38                       0:00:00   0:00:12


   Speed :             5488519 Bytes/sec.
   Speed :             314.055 MegaBytes/min.

   Ended : Sun Jun 28 01:43:30 2015

C:\Windows\system32>
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Using /MT:32 is "a little bit" exaggerated, you usually do not use more than 2 or 4 threads.
You can stop and restart at any time. With /Z you should even be able to restart within a file, otherwise the file might be transferred completely again.
0
25112Author Commented:
Qlemo,  /MT:32. do you see this as a downside? (drag on performance)

does  /Z work based on timestamp? (if the file was updated between the run, will it also be transferred)
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
/Z is not related to whether the file will be copied, only which method is used. By having a time stamp not set, RoboCopy knows it has to copy the file. By looking at the committed file size, it knows where to start again.

/MT:32 has a down-side. Only if you copy from 32 sources to a target being able to take 32 times the data of a single thread, and the network having free resources in that amount, and the CPU being able to use 32 threads simultanously, it does make sense.
You should keep the value much lower.
0
25112Author Commented:
>>By having a time stamp not set, RoboCopy knows it has to copy the file. By looking at the committed file size, it knows where to start again.

what if the size did not change, but data did? is there a way to make sure it has to cover all updated files in the next run (not the ones that are already updated). would not modified date be more reliable than size alone? (size could have gone down too?)
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Don't bother. If the copy was completed, size and date are correct. A changed file has different attributes, date, and usually size, so is detected.
If the copy has been interrupted in-midst of copying a file, the file data is nothing, and hence always older than the original file. RoboCopy also detects minor changes to the file, requiring it to be copied from start again.
0
arnoldCommented:
I do not understand what you are pointing, qlemo's comment I think refers to you not setting the criteria of newer than or maxage 90 meaning files that have not changed since or within a time period exclude from processing, means that everytime the program is started it will evaluated every single file in the directory.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Yes, basically every single file is checked for size and other changes to take over.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
25112Author Commented:
thanks a lot! appreciate it very much experts!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.