+ Post New Thread
Results 1 to 9 of 9
Windows Server 2008 R2 Thread, RoboCopy help in Technical; Hi, I am doing a migration of users home folders onto a new file server on a new domain. In ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,821
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444

    RoboCopy help

    Hi,

    I am doing a migration of users home folders onto a new file server on a new domain.

    In the root of student home folders there is a folder called Application Data and the administrator is locked out of this.

    Is there a way i can set robocopy to skip copying this folder please?

    Thanks

  2. #2

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,170
    Thank Post
    284
    Thanked 772 Times in 582 Posts
    Rep Power
    334
    Easiest way is to set retry to 1 and wait to 1 second with /R:1 /W:1

  3. #3

    Join Date
    Feb 2007
    Location
    East Sussex
    Posts
    457
    Thank Post
    16
    Thanked 84 Times in 76 Posts
    Rep Power
    30
    I normally just use the /r:0 and /w:0 options - so if it fails on a file it just moves on. I figure that if it fails to copy something on the first attempt, the chances are it isn't going to get anywhere by keep trying so it it might as well just move on.

    Steve

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,821
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Thats what i have done for a temp fix but its slowing down the process.

    What does the /secfix switch actually do please?

  5. #5

    Join Date
    Feb 2007
    Location
    East Sussex
    Posts
    457
    Thank Post
    16
    Thanked 84 Times in 76 Posts
    Rep Power
    30
    I believe /secfix just copies security information - for example if you copy all the files first, then decide you did want to copy security permissions, you can use that to just copy security settings and not all the files again.

    Steve

  6. #6

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,170
    Thank Post
    284
    Thanked 772 Times in 582 Posts
    Rep Power
    334
    Actually, /XD "Application Data" should work.

  7. Thanks to teejay from:

    FN-GM (8th June 2011)

  8. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,821
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    That works. If i was to exclude 2 folders would i do this

    /XD "Application Data" "Folder1"

    or

    /XD "Application Data" /XD "Folder1"

  9. #8

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,170
    Thank Post
    284
    Thanked 772 Times in 582 Posts
    Rep Power
    334
    /XD "Application Data" "Folder1" seems to work

  10. Thanks to teejay from:

    FN-GM (8th June 2011)

  11. #9


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,755
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    What TeeJay said is correct, but you only need to use quotes for folders which contain spaces in their names. I usually tell RoboCopy to skip temporary and junk files too...

    Code:
    /XF *.tmp .ds_store thumbs.db ~$*.*

SHARE:
+ Post New Thread

Similar Threads

  1. Robocopy
    By itgeek in forum Windows Server 2008 R2
    Replies: 1
    Last Post: 24th January 2011, 09:24 AM
  2. Using Robocopy
    By MGTechman in forum Windows Vista
    Replies: 8
    Last Post: 6th November 2009, 04:43 PM
  3. Robocopy some help...
    By Nemernic in forum Scripts
    Replies: 6
    Last Post: 28th July 2009, 11:23 AM
  4. Robocopy Help
    By Gatt in forum Windows
    Replies: 2
    Last Post: 11th July 2008, 11:06 AM
  5. Robocopy Help
    By soze in forum How do you do....it?
    Replies: 15
    Last Post: 2nd June 2008, 02:42 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •