1
0
mirror of https://github.com/rclone/rclone.git synced 2025-03-10 13:18:19 +01:00
rclone/cmd
Ivan Andreev b40d9bd4c4
cmd: add hashSUM file support ()
Currently rclone check supports matching two file trees by sizes and hashes.
This change adds support for SUM files produced by GNU utilities like sha1sum.

Fixes  

Note: checksum by default checks, hashsum by default prints sums.
New flag is named "--checkfile" but carries hash name.
Summary of introduced command forms:

```
rclone check sums.sha1 remote:path --checkfile sha1
rclone checksum sha1 sums.sha1 remote:path             
rclone hashsum sha1 remote:path --checkfile sums.sha1
rclone sha1sum remote:path --checkfile sums.sha1
rclone md5sum remote:path --checkfile sums.md5
```
2021-07-07 18:34:16 +03:00
..
about docs: minor cleanup of space around code section 2021-04-07 08:47:29 +02:00
all cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend fs: Add context to NewFs 2020-11-09 18:05:54 +00:00
cachestats build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
cat docs: fix markup of arguments 2021-01-25 22:40:46 +03:00
check cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
checksum cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount selfupdate: dont detect FUSE if build is static 2021-04-03 21:54:15 +03:00
config docs: fix incorrect syntax in config update example 2021-06-10 08:59:18 +02:00
copy docs: fix markup of arguments 2021-01-25 22:40:46 +03:00
copyto docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
copyurl docs: fixed some typos 2021-04-28 22:55:27 +01:00
cryptcheck check,cryptcheck: add reporting of filenames for same/missing/changed 2020-07-21 22:08:13 +01:00
cryptdecode cryptdecode: fix formatting 2021-01-21 10:39:51 +00:00
dedupe docs: Updated sync and dedupe command docs 2021-03-13 15:01:32 +00:00
delete Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
deletefile cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
genautocomplete docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
gendocs docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
hashsum cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
link link: use "off" value for unset expiry 2021-04-07 13:58:37 +01:00
listremotes config: make config file system pluggable 2021-03-11 17:29:26 +00:00
ls docs: fix markup of arguments 2021-01-25 22:40:46 +03:00
lsd fs: deglobalise the config 2020-11-26 16:40:12 +00:00
lsf fs: Add context to NewFs 2020-11-09 18:05:54 +00:00
lsjson lsjson: fix unterminated JSON in the presence of errors 2021-02-02 17:46:56 +00:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
mount2 docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
mountlib Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
move docs: fix markup of arguments 2021-01-25 22:40:46 +03:00
moveto docs: promote the use of -i/--interactive and "rclone sync -i" everywhere 2020-06-10 12:33:53 +01:00
ncdu Use decimal prefixes for counts 2021-04-27 02:25:52 +03:00
obscure obscure: make rclone osbcure - ignore newline at end of line 2021-01-28 15:54:41 +00:00
purge docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rc rc: factor async/sync job handing into rc/jobs from rc/rcserver 2021-02-07 14:56:41 +00:00
rcat rcat: add --size flag for more efficient uploads of known size - fixes 2021-04-13 12:25:47 +01:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes . 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rmdirs docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
selfupdate selfupdate: fix archive name on macos 2021-05-13 22:35:39 +03:00
serve serve sftp: add --stdio flag to serve via stdio - fixes 2021-05-28 13:40:32 +01:00
settier cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
sha1sum cmd: add hashSUM file support () 2021-07-07 18:34:16 +03:00
size Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
sync docs: Updated sync and dedupe command docs 2021-03-13 15:01:32 +00:00
test test changenotify: add command to help debugging changenotify 2021-04-21 10:52:05 +01:00
touch docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
tree fs: deglobalise the config 2020-11-26 16:40:12 +00:00
version config: fix issues with memory-only config file paths 2021-04-12 18:17:19 +02:00
cmd.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00
help.go fs: deglobalise the config 2020-11-26 16:40:12 +00:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
selfupdate_disabled.go build: add build tag noselfupdate 2021-04-04 11:22:09 +03:00
selfupdate_enabled.go build: add build tag noselfupdate 2021-04-04 11:22:09 +03:00
siginfo_darwin.go cmd: fix up stats printing on macOS after accounting change 2019-07-28 20:38:20 +01:00
siginfo_others.go