LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2013, 09:10 AM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 299

Rep: Reputation: Disabled
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
 
Old 02-12-2013, 02:08 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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

Last edited by suicidaleggroll; 02-12-2013 at 02:09 PM.
 
Old 02-13-2013, 08:52 AM   #3
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 299

Original Poster
Rep: Reputation: Disabled
Yep tried that currently using:
Code:
robocopy <source> <destination> /MIR /FFT /DCOPY:DAT /XO
but still detects every file as modified.
 
  


Reply

Tags
samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems using robocopy to copy to a samba share. osantos Linux - Server 9 02-03-2015 04:33 AM
Enable Windows to share remote Samba files to other computers TheOneAndOnlySM Linux - Networking 3 11-03-2008 08:39 PM
copy files form windows app to samba share procfs General 1 07-19-2006 06:13 AM
Unable to share files from my linux to windows computers through samba Niceman2005 Linux - Software 5 05-21-2006 08:19 PM
help: when changing files on samba share from windows system, changes do not appear zero79 Linux - Software 1 06-13-2004 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration