brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: rclone cryptcheck verifies encrypted uploads without downloading them

Rclone
~/tips/tip-rclone-cryptcheck

rclone cryptcheck /mnt/user/photos secret:photos --one-way

Compares local files with their encrypted copies using checksums.

With a crypt remote, an ordinary check has no matching checksums to compare, because the stored files are encrypted. rclone has a separate command that solves this.

Give it the original and the crypt remote:

rclone cryptcheck /mnt/user/photos secret:photos --one-way

For every file, rclone reads the nonce from the encrypted copy, encrypts your local file again with it and compares the checksum of that result with the one the provider holds. You verify what is really stored without downloading it.

--one-way only asks whether every source file is on the destination and matches. Extra files on the remote are ignored, which suits a backup. As with a normal check, you can collect the problems in a file:

rclone cryptcheck /mnt/user/photos secret:photos --one-way --combined report.txt

It has a requirement: the storage underneath the crypt remote must offer some kind of checksum. If it doesn’t, you’re left with rclone check --download, which pulls everything through your connection.

I’d also keep the source local when possible, as the docs suggest, since a remote source has to be read in full to encrypt it. That makes this a good monthly job after the backup. It still proves nothing about your password, so keep the crypt password and salt somewhere other than the machine you’re backing up.

Further reading: rclone cryptcheck

More Rclone tips rclone copyurl https://example.com/files/big.iso remote:isos -a rclone size remote:photos rclone config redacted rclone ncdu remote:backup rclone copy /data remote:data --bwlimit "08:00,1M 18:00,5M 23:00,off" -P All Rclone tips (14) All topics

Link