Results 1 to 5 of 5

Thread: Robocopy to copy missing files only

  1. #1
    ljbartel@juno.com Guest

    Robocopy to copy missing files only

    I need help with Robocopy parameters. I've used /mir before but this
    time I only want to copy source files missing on destination. What
    parameters do I need? I've used /l to test but the log doesn't look
    like it would do the right thing.

  2. #2
    Mark King Guest

    RE: Robocopy to copy missing files only

    You can use the basic command, robocopy will copy only files that are
    different in the source folder than what is in the destination directory
    Robocopy "sourcefile" "destination"
    Then I like to use /R:2 /W:30 Which retries 2 times and sets the timeout to
    30seconds. Good Luck!

  3. #3
    geoff.douglass@bdk.com Guest

    Re: Robocopy to copy missing files only

    If you use "/XO" that will do an incremental copy of only newer files
    (i.e. eXclude Older files). That usually gets it done.


  4. #4
    Join Date
    Apr 2009
    Posts
    488

    Re: Robocopy to copy missing files only

    Robocopy by default shall only copy a file incase the source and destination have different time stamps or different file sizes. When a source file is edited to a newed or older date or time then robocopy would write it to the destination. You can try to get few sample files and test the behaviour before running the command agaisnt thousands of files.

  5. #5
    Join Date
    Nov 2009
    Posts
    687

    Re: Robocopy to copy missing files only

    Even I was facing the same issue and was searching for a solution that might work while specifying a drive or a directory. After searching I found out that I had to add a blank character before the leading double quote, like for example - the directory name for Robocopy = '\"' + directory name + ' "\'. So, after allowing blank characters in file names was a good idea I guess.

Similar Threads

  1. copy shares and share info using Robocopy?
    By Jeff in forum Windows Server Help
    Replies: 4
    Last Post: 09-03-2010, 12:29 PM
  2. Robocopy.exe does not copy network share properties
    By jbrid in forum Windows Server Help
    Replies: 5
    Last Post: 05-03-2010, 07:35 PM
  3. Recovering files after using /MIR with Robocopy
    By aaaronm in forum Software Development
    Replies: 3
    Last Post: 27-12-2009, 06:36 AM
  4. copy file/folder permissions after robocopy
    By mohaaron in forum Windows Server Help
    Replies: 6
    Last Post: 27-08-2007, 02:29 AM
  5. Replies: 2
    Last Post: 18-02-2006, 12:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,678,879.79482 seconds with 17 queries