Skip to content

sync: add option to always skip hashsum check #4793

Closed

Description

@zhucan

same, ht, _ := CheckHashes(ctx, src, dst)

Activity

  1. zhucan commented on Nov 23, 2020

    @zhucan
    ContributorAuthor

    @ncw I have other question, why not check 'mtime' first, check 'size' second and check 'hash' third?

  2. ncw commented on Nov 23, 2020

    @ncw
    Member

    Rclone will only get to that point if the sizes are the same but the modtimes are different which usually means a file needs transferring. However rclone does a check with checksum just to make sure and if it is really the same it just updates the modtime.

    I have other question, why not check 'mtime' first, check 'size' second and check 'hash' third?

    Size is the quickest thing to check so we check that first.

    We only check the checksum if the modtime if different, but the size is the same (without --checksum)

  3. zhucan commented on Nov 24, 2020

    @zhucan
    ContributorAuthor

    Rclone will only get to that point if the sizes are the same but the modtimes are different which usually means a file needs transferring. However rclone does a check with checksum just to make sure and if it is really the same it just updates the modtime.

    I have other question, why not check 'mtime' first, check 'size' second and check 'hash' third?

    Size is the quickest thing to check so we check that first.

    We only check the checksum if the modtime if different, but the size is the same (without --checksum)

    If sizes are the same but the modtimes are different which usually means files needs transferring, it's needed to check the checksum? Because of check the checksum that there is a lot of pressure on storage.

  4. zhucan commented on Nov 24, 2020

    @zhucan
    ContributorAuthor

    @ncw I have other question, Can not copy acl for object from a bucket to other bucket with rclone?

  5. ncw commented on Nov 24, 2020

    @ncw
    Member

    If sizes are the same but the modtimes are different which usually means files needs transferring, it's needed to check the checksum? Because of check the checksum that there is a lot of pressure on storage.

    What would you like rclone to do here? Just upload the file?

    If so then you need the flag

      --no-update-modtime    Don't update destination mod-time if files identical.
    

    I have other question, Can not copy acl for object from a bucket to other bucket with rclone?

    Which backend is this?

    And are you doing a server side copy or not?

    I think for a server side copy rclone will copy the ACL for S3.

  6. zhucan commented on Nov 25, 2020

    @zhucan
    ContributorAuthor

    I think for a server side copy rclone will copy the ACL for S3.

    Backend is ceph rgw, maybe not support server side copy.

  7. zhucan commented on Nov 25, 2020

    @zhucan
    ContributorAuthor

    What would you like rclone to do here? Just upload the file?

    Yes, Just upload, But we want to check hash, only want to check modtime & size.

  8. ncw commented on Nov 25, 2020

    @ncw
    Member

    Yes, Just upload, But we want to check hash, only want to check modtime & size.

    Then --no-update-modtime is just what you want.

  9. zhucan commented on Nov 25, 2020

    @zhucan
    ContributorAuthor

    @ncw

    same, ht, _ := CheckHashes(ctx, src, dst)

    --no-update-modtime will check the hash.

  10. ncw commented on Nov 25, 2020

    @ncw
    Member

    Hmm, you are right.

    If you use this flag then I think it will work for you provided that the modification times only ever increase on the source files.

    -u, --update Skip files that are newer on the destination.

    Give it a go!

  11. ivandeex commented on Nov 25, 2020

    @ivandeex
    Member

    @ncw

    I spent some time marking (most?) some open issues/PRs requesting various variations of change detection flags. I dare summarize, to me it's a deep self-contradictory mess.
    https://github.com/rclone/rclone/issues?q=label%3A%22change+detection%22

    Add filtering flags on top https://github.com/rclone/rclone/issues?q=label%3A%22filtering%22
    No wonder the flag page in docs is one of the longest.

    Basically, we have three basic traits: hash,size,mtime. Sooner or later rclone is going to support all ordered permutations thereof. 😄

    🧐 Idea: pause adding new --no-ignore-x-if-prefer-y flags for now. Add examples to docs for existing flags, they cover 95% of known use cases. For remaining 5%, create an issue to design a flag like --change-criteria +time,-size,whatever.

    P.S. Re. this ticket: I see the requested permutation but can't grasp a use case.

  12. zhucan commented on Nov 25, 2020

    @zhucan
    ContributorAuthor

    Hmm, you are right.

    If you use this flag then I think it will work for you provided that the modification times only ever increase on the source files.

    -u, --update Skip files that are newer on the destination.

    Give it a go!

    The same to --update.

  13. 15 remaining items

  14. ivandeex commented on Dec 2, 2020

    @ivandeex
    Member

    This pr only can copy metadata, not acl.

    then it's not implemented.
    you can try s3cmd or s3 api to copy acl.

  15. zhucan commented on Dec 2, 2020

    @zhucan
    ContributorAuthor

    This pr only can copy metadata, not acl.

    then it's not implemented.
    you can try s3cmd or s3 api to copy acl.

    copy that, we had added the operation.

  16. ivandeex commented on Dec 2, 2020

    @ivandeex
    Member

    "S3 ACL copy support" - status WontfFix

  17. ivandeex commented on Dec 2, 2020

    @ivandeex
    Member

    Change detection logic proposed here is an advanced case that will be implemented by more general issue #4810 (advanced change detection)

    @ncw
    Do we want to keep this open for collecting use cases?
    Blocks on #4810 ?
    or Duplicates #4810 ?

    Update: let's keep it open

  18. zhucan commented on Dec 3, 2020

    @zhucan
    ContributorAuthor

    "S3 ACL copy support" - status WontfFix

    Is there plan?

  19. ivandeex commented on Dec 3, 2020

    @ivandeex
    Member

    probably no
    i can't find a ticket.

  20. ivandeex commented on Dec 3, 2020

    @ivandeex
    Member

    @zhucan
    since this ticket is dedicated to change detection
    please submit new ticket
    "s3: copy ACL for an object from bucket to bucket"

  21. zhucan commented on Dec 3, 2020

    @zhucan
    ContributorAuthor

    @ivandeex copy that

  22. zhucan commented on Dec 3, 2020

    @zhucan
    ContributorAuthor

    So we could make a flag called --no-checksum-if-same-age (or something).

    only '--no-checksum' is enough, if modtime and size are same. if we use 'rclone copy' without other flags, it will check size and modtime and when the size and modtime are same that will checksum, so we can add the flags '--no--checksum' skip the to checksum when the size and modtime are same.
    Is it ok? @ncw

  23. ivandeex commented on Nov 19, 2021

    @ivandeex
    Member

    Request captured in #4810 (comment)
    Superseded by more general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions