On Thu, 29 Dec 2005, Savage, Elijah <[EMAIL PROTECTED]> wrote:
> 
> I am trying to use a SOHO NAS to rsync my music dir to. Every time I run
> the command it copies the entire dir and files each time.
... 
> I am using FreeBSD 5.4 with the latest port build and I run the command
> below to try and accomplish what I need. But what I have done since the
> NAS is running smbfs I have simply mounted this drive with mount_smbfs
> to /musicbackup/. As you can see below it copies every file each time.

If you are copying from a *nix filesystem to a Windows filesystem
(which is implied by your use of mountsmbfs) then the timestamps may
not be matching since Windows uses a 2-second granularity.

Try using the 'stat' command on a file in the source and destination:

  stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3"
  stat "/musicbackup/Damon Marly/01 - Confrontation.mp3"

The "Modify" times should be the same, down to the second.

If they differ by one second, use  --modify-window=1  and that will
allow rsync to match the timestamps.

(Wayne - the "copies every file" entry in the FAQ should also mention
this problem with Windows timestamps.  Even though it may not be "every
file", it may seem like it...)

    John

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to