# Verify data integrity of a crypt remote

**URL:** <https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090>\
**Category:** Help and Support\
**Created:** [February 5, 2022, 6:44pm UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090 "2022-02-05T18:44:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lu\_Wang](https://forum.rclone.org/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@Lu\_Wang](https://forum.rclone.org/u/Lu_Wang)\
**Post date:** [February 5, 2022, 6:44pm UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090/1 "2022-02-05T18:44:08Z")

</div>

I have a crypt remote on a USB drive. I'd like to verify the integrity of the data.

Note that I do not have copies of the flies. E.g. consider files inside `backup-dir`. if I understand correctly, I can still verify the integrtiy by decrypting all the data.

What would be the best way of doing so?

I can think of a few options:

- `rclone check --download remote: remote:`
- `rclone cryptcheck remote: remote:`
- `rclone copy remote: /dev/null`
  - `/dev/null` probably does not work like this, maybe I need a dummy fs

- `rclone mount remote:` + a script that read through all data

---

<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:** [February 5, 2022, 7:04pm UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090/2 "2022-02-05T19:04:34Z")

</div>

Probably the easiest way of just downloading all the files is

```
rclone md5sum remote:

```

You get an md5sum you can feed back into `rclone md5sum -C` for bit rot detection also, though the crypt decode will almost certainly fail if you have bitrot.

```
  -C, --checkfile string Validate hashes against a given SUM file instead of
```

---

<div class="post-metadata">

**Author:** ![Lu\_Wang](https://forum.rclone.org/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@Lu\_Wang](https://forum.rclone.org/u/Lu_Wang)\
**Post date:** [February 5, 2022, 8:21pm UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090/3 "2022-02-05T20:21:20Z")

</div>

I think "copy to dummy fs" would be faster, since it doesn't need to compute any checksum. But probably md5 is fast enough.

Thanks!

---

<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:** [February 6, 2022, 11:16am UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090/4 "2022-02-06T11:16:45Z")

</div>

If you want more speed you can run `rclone hashsum crc32 remote:` Even my 4 year old laptop can MD5SUM at 500 MiB/s though so you probably won't notice the difference.

---

<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 9, 2022, 11:16am UTC](https://forum.rclone.org/t/verify-data-integrity-of-a-crypt-remote/29090/5 "2022-02-09T11:16:46Z")

</div>

Closed on February 9, 2022, 11:16am UTC

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