# 'rclone check' why not compare modtime?

**URL:** <https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100>\
**Category:** Dev Discussions\
**Created:** [December 17, 2020, 2:23am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100 "2020-12-17T02:23:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhucan](https://forum.rclone.org/user_avatar/forum.rclone.org/zhucan/32/8082_2.png) [@zhucan](https://forum.rclone.org/u/zhucan)\
**Post date:** [December 17, 2020, 2:23am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/1 "2020-12-17T02:23:53Z")

</div>

'rclone check cmd' why not check modtime?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [December 17, 2020, 3:15am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/2 "2020-12-17T03:15:06Z")

</div>

If the sizes/checksums match, why would you add a modtime check as well?

---

<div class="post-metadata">

**Author:** ![zhucan](https://forum.rclone.org/user_avatar/forum.rclone.org/zhucan/32/8082_2.png) [@zhucan](https://forum.rclone.org/u/zhucan)\
**Post date:** [December 17, 2020, 4:22am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/3 "2020-12-17T04:22:00Z")

</div>

if mtime and size match, If user know md5 match, we want not to checksum, Because checksum will cause more pressure on storage.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [December 17, 2020, 12:26pm UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/4 "2020-12-17T12:26:04Z")

</div>

> [@zhucan](#):
>
> 'rclone check cmd' why not check modtime?

If you do `rclone sync --dry-run` then you will get an equivalent of `rclone check` but comparing modtime.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [December 17, 2020, 12:37pm UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/5 "2020-12-17T12:37:47Z")

</div>

Size and modtime does not always equal the same file.

A checksum is a call back from the storage provider that's already there so that's not much pressure on the storage.

The use case for check is someone wants to validate with certainty that their data is the same.

---

<div class="post-metadata">

**Author:** ![zhucan](https://forum.rclone.org/user_avatar/forum.rclone.org/zhucan/32/8082_2.png) [@zhucan](https://forum.rclone.org/u/zhucan)\
**Post date:** [December 18, 2020, 6:42am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/6 "2020-12-18T06:42:43Z")

</div>

If modtime and size match, sometimes we can think the object is equal, if only size is match, modtime is not match, we can think the object is not equal, so check modtime is  
necessary.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [December 18, 2020, 11:20am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/7 "2020-12-18T11:20:43Z")

</div>

Sorry as I'm not following.

Check does size + checksum and if they match, they are equal.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [February 17, 2021, 7:20am UTC](https://forum.rclone.org/t/rclone-check-why-not-compare-modtime/21100/8 "2021-02-17T07:20:48Z")

</div>

Closed on February 17, 2021, 7:20am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
