Windows 10: Robocopy - copy changed files only

Discus and support Robocopy - copy changed files only in Windows 10 Network and Sharing to solve the problem; Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy... Discussion in 'Windows 10 Network and Sharing' started by Andy_Melb, Oct 8, 2022.

  1. Andy_Melb Win User

    Robocopy - copy changed files only


    Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy to the PC any files which changed after I took the Windows 7 backup on the 28th. I specifically do not want to copy any files that have not changed.I have been through the robocopy documentation at https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy but am not completely comfortable with what I have read.I think I should use the /xn option as:robocopy <source> <destination> /xnbut am not su

    :)
     
    Andy_Melb, Oct 8, 2022
    #1
  2. sba923 Win User
    sba923, Oct 8, 2022
    #2
  3. sba123 Win User
    robocopy files but exclude files in root

    Hello,

    I want to copy this directory, but exclude the files in root (a,b,c):

    [table][tr][td]Source:c:\src\test\ - a.txt - b.txt - c.txt - sub1\ - d.txt - sub2\ - e.txt[/td][td]Destination:c:\dest\test\ - sub1\ - d.txt - sub2\ - e.txt[/td][/tr][/table]
    I tried:

    - robocopy c:\src\test c:\dest\test /s /xd c:\src\test => a,b,c are copied Robocopy - copy changed files only :(

    - robocopy c:\src\test c:\dest\test /s /xd test => a,b,c are copied Robocopy - copy changed files only :(

    - robocopy c:\src\test c:\dest\test /s /xd . => a,b,c are copied Robocopy - copy changed files only :(

    - robocopy c:\src\test c:\dest\test /s /xd .. => a,b,c are copied Robocopy - copy changed files only :(

    - robocopy c:\src\test c:\dest\test /s /xf c:\src\test\*.txt => Invalid parameter #5 Robocopy - copy changed files only :(

    I want to avoid a call for every \subX\ (robocopy c:\src\test\sub1 c:\dest\test\sub1 /s ...)

    And I don't want to put robocopy inside a for loop to copy the subs or delete the files in a second step.

    Is this possible anyhow?
     
    sba123, Oct 8, 2022
    #3
  4. temp02 Win User

    Robocopy - copy changed files only

    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Oct 8, 2022
    #4
Thema:

Robocopy - copy changed files only

Loading...
  1. Robocopy - copy changed files only - Similar Threads - Robocopy copy changed

  2. Why robocopy only copy directories but not files?

    in Windows 10 Network and Sharing
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  3. Why robocopy only copy directories but not files?

    in Windows 10 Gaming
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  4. Why robocopy only copy directories but not files?

    in Windows 10 Software and Apps
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  5. Why robocopy only copy directories but not exe files?

    in Windows 10 Network and Sharing
    Why robocopy only copy directories but not exe files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?...
  6. Robocopy - copy changed files only

    in Windows 10 Gaming
    Robocopy - copy changed files only: Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy to the PC any files which changed after I took the Windows 7 backup on the 28th. I specifically do not want to copy any files...
  7. Robocopy - copy changed files only

    in Windows 10 Software and Apps
    Robocopy - copy changed files only: Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy to the PC any files which changed after I took the Windows 7 backup on the 28th. I specifically do not want to copy any files...
  8. robocopy only copies a couple of files

    in Windows 10 Gaming
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....
  9. robocopy only copies a couple of files

    in Windows 10 Software and Apps
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....
  10. robocopy only copies a couple of files

    in Windows 10 Installation and Upgrade
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....