LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba share causes Windows Robocopy /mir to keep rewriting the files. (http://www.linuxquestions.org/questions/linux-networking-3/samba-share-causes-windows-robocopy-mir-to-keep-rewriting-the-files-4175449822/)

Nick_C 02-12-2013 09:10 AM

Samba share causes Windows Robocopy /mir to keep rewriting the files.
 
I have a Samba share that I am copying files to with robocopy /mir. Problem is when I try and sync that with robocopy /mir it copies all files again even though they haven't changed.

Robocopy /mir works fine on NTFS to NTFS copies so I guess must be something to do with the use of Samba, I can't see why robocopy should be detecting all these files as changed when they haven't been.

Any ideas?

Thanks, Nick

suicidaleggroll 02-12-2013 02:08 PM

It's probably a timestamping problem. NTFS and extx timestamp differently, so robocopy is most likely detecting a difference and flagging the file as changed.

Have you tried the /xo and/or /fft switches?

http://community.spiceworks.com/topi...-changed-files

Nick_C 02-13-2013 08:52 AM

Yep tried that currently using:
Code:

robocopy <source> <destination> /MIR /FFT /DCOPY:DAT /XO
but still detects every file as modified.


All times are GMT -5. The time now is 11:33 AM.