+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, Robocopy help in Technical; Hi there, I done a copy of data from server A to server B a week or so ago and ...
  1. #1
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    84

    Robocopy help

    Hi there,

    I done a copy of data from server A to server B a week or so ago and now I'd like to do the copy again but obviously only copy the files/directories that have been added, deleted or changed etc.

    Would I just need: robocopy \\serverA\dir \\serverB\dir /mir

    Thanks (again)

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,994
    Thank Post
    120
    Thanked 279 Times in 257 Posts
    Rep Power
    106
    That should be fine. Also look at the /zb switch for dealing with files that may locked/in use and the max retries and time between retries switches to make life a little more helpful. Oh and dont forget the logging option after to make sure you know everything copied over.
    Just be very careful with /mir as it warns because if you point it at the wrong directory it will start deleting files that you don't want to delete. Don't do what I did once and point it at a root folder with a load of folders inside and not the sub folder to that
    Last edited by ChrisH; 20th January 2011 at 08:00 PM.

  3. Thanks to ChrisH from:

    bodminman (20th January 2011)

  4. #3
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    84
    Just tried: robocopy \\serverA\folder1 \\ServerB\folder 1 /mir

    Instead of mirroring to 'folder 1' which exists, it created a folder called 'folder' and copied everything into that! Any ideas?

  5. #4
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    Unless that's a typo, you'll need speech marks around path names that have spaces in.

  6. Thanks to morganw from:

    bodminman (20th January 2011)

  7. #5
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    84
    Quote Originally Posted by morganw View Post
    Unless that's a typo, you'll need speech marks around path names that have spaces in.
    Thank you!

SHARE:
+ Post New Thread

Similar Threads

  1. Using Robocopy
    By MGTechman in forum Windows Vista
    Replies: 8
    Last Post: 6th November 2009, 04:43 PM
  2. Robocopy some help...
    By Nemernic in forum Scripts
    Replies: 6
    Last Post: 28th July 2009, 11:23 AM
  3. Robocopy where is it and how do I use it?
    By speckytecky in forum Windows
    Replies: 10
    Last Post: 29th July 2008, 09:29 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
  •