[Solved] Does BTSync use file timestamps to check for file changes?

Recommended Posts

Recently I copied some images to a BTSync share. After they had synced I noticed that many of the original files were corrupted (this was nothing to do with BTSync) so I re-copied them, preserving their timestamps. Most of the updates have not synced to the two clients. Is this because their timestamps haven't changed?

If so, is the only way around this to delete/rename the directory? If so is there any way to make this process more efficient than resyncing the entire directory? (I'd rather not alter the timestamps.)

Thanks, Jamie

Share this post

Link to post
Share on other sites

This does seem to be due to the timestamps not changing. I overcame this by adding a second to all timestamps

find DIRECTORY -print | while read filename; do
    touch -d "$(date -r "$filename") + 1 second" "$filename"

I hoped that this would be efficient, but the checksums were different of even the files that looked ok and BTSync appeared to resync all the data.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.