Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added last-modified comparison and --exclude glob syntax #31

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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