Skip to content

Conversation

@schweickism
Copy link

Attempt at implementing last-modified check. It's slightly different than rsync's default "quick check" because (in my testing at least) this turned out to be the time uploaded rather than preserving the actual file meta data as you'd get rsyncing to a more traditional file system.

--exclude based on PR from Dave Lane. I believe the updated style is more like actual rsync behavior.

I'm aware this script maybe isn't being maintained right now, but thought these updates might be useful to someone anyway.

Dave Lane and others added 5 commits March 19, 2012 14:08
…sync.

Traditional rsync looks for equality in last-modified. Since we only have time uploaded to work with, this implementation opts to preserve the more recent copy, similar to rsync --update. I think this is relatively intuitive for uploads, but it could be problematic for downloads if the user is trying to "restore" as opposed to "get up to date" - I'm figuring in the case of the former it's easier to delete the local copy and try again than to recover inadvertently overwriting a file.

This also implements a --size-only option like rsync's which can overcome the potential pitfall above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant