You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sync: add option to always skip hashsum check #4793
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)
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.
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.
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.
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
Activity
zhucan commentedon Nov 23, 2020
@ncw I have other question, why not check 'mtime' first, check 'size' second and check 'hash' third?
ncw commentedon Nov 23, 2020
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.
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)zhucan commentedon Nov 24, 2020
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.
zhucan commentedon Nov 24, 2020
@ncw I have other question, Can not copy acl for object from a bucket to other bucket with rclone?
ncw commentedon Nov 24, 2020
What would you like rclone to do here? Just upload the file?
If so then you need the flag
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.
zhucan commentedon Nov 25, 2020
Backend is ceph rgw, maybe not support server side copy.
zhucan commentedon Nov 25, 2020
Yes, Just upload, But we want to check hash, only want to check modtime & size.
ncw commentedon Nov 25, 2020
Then --no-update-modtime is just what you want.
zhucan commentedon Nov 25, 2020
@ncw
rclone/fs/operations/operations.go
Line 216 in 7078311
--no-update-modtime will check the hash.
ncw commentedon Nov 25, 2020
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!
ivandeex commentedon Nov 25, 2020
@ncw
I spent some time marking (most?) some open issues/PRs requesting various variations of
change detectionflags. 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
filteringflags on top https://github.com/rclone/rclone/issues?q=label%3A%22filtering%22No 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.
zhucan commentedon Nov 25, 2020
The same to --update.
15 remaining items
zhucan commentedon Dec 2, 2020
This pr only can copy metadata, not acl.
ivandeex commentedon Dec 2, 2020
then it's not implemented.
you can try s3cmd or s3 api to copy acl.
zhucan commentedon Dec 2, 2020
copy that, we had added the operation.
ivandeex commentedon Dec 2, 2020
"S3 ACL copy support" - status
WontfFixivandeex commentedon Dec 2, 2020
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
zhucan commentedon Dec 3, 2020
Is there plan?
ivandeex commentedon Dec 3, 2020
probably no
i can't find a ticket.
ivandeex commentedon Dec 3, 2020
@zhucan
since this ticket is dedicated to change detection
please submit new ticket
"s3: copy ACL for an object from bucket to bucket"
zhucan commentedon Dec 3, 2020
@ivandeex copy that
zhucan commentedon Dec 3, 2020
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
ivandeex commentedon Nov 19, 2021
Request captured in #4810 (comment)
Superseded by more general