1
mirror of https://github.com/rclone/rclone synced 2024-11-19 20:07:15 +01:00
Go to file
lostheli c8cfa43ccc Add a download flag to hashsum and related commands to force rclone to download and hash files locally
This commit modifies the operations.hashSum function by adding an alternate code path. This code path is triggered by passing downloadFlag = True. When activated, rclone will download files from the remote and hash them locally. downloadFlag = False preserves the existing behavior of using the remote to retrieve the hash.

This commit modifies HashLister to support the new hashSum method as well as consolidating the roles of HashLister, HashListerBase64, Md5sum, and Sha1sum.  The printing of hashes from the function defined in HashLister has been revised to work with --progress.  There are light changes to operations.syncFprintf and cmd.startProgress for this.

The unit test operations_test.TestHashSums is modified to support this change and test the download functionality.

The command functions hashsum, md5sum, sha1sum, and dbhashsum are modified to support this change.  A download flag has been added and an output-file flag has been added.  The output-file flag writes hashes to a file instead of stdout to avoid the need to redirect stdout.
2020-12-27 15:40:44 +00:00
.github build: fix brew install --cask syntax for macOS build 2020-12-26 17:23:43 +00:00
backend alias: fix tests after parsing of ... change #4862 2020-12-21 18:23:16 +00:00
bin build: update nfpm syntax to fix build of .deb/.rpm packages 2020-12-26 18:36:16 +00:00
cmd 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
contrib/docker Contrib: Add sample WebDAV server Docker Compose manifest. 2019-09-15 16:06:54 +01:00
docs 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
fs 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
fstest fstest: add test for reading object in a case insensitive way #4830 2020-12-07 17:38:22 +00:00
graphics build: Add file properties and icon to Windows executable (fixes #4304) 2020-06-11 09:26:14 +01:00
lib atexit: add Signalled() function - set if called from a signal #4804 2020-11-29 17:44:00 +00:00
vfs vfs: make cache dir absolute before using it to fix path too long errors 2020-12-11 10:00:51 +00:00
.gitattributes build: add azure pipelines build 2019-08-06 10:31:32 +01:00
.gitignore lib: Add file name compression 2020-08-13 16:14:11 +01:00
.golangci.yml build: move linter build tags into Makefile to fix golangci-lint 2019-04-12 15:48:36 +01:00
CONTRIBUTING.md docs: spelling: etc. 2020-10-28 18:16:23 +00:00
COPYING Initial commit - some small parts working 2012-11-18 17:32:31 +00:00
Dockerfile build: fix custom timezone in Docker image 2020-06-17 10:43:03 +01:00
go.mod azure: add support for service principals - fixes #3230 2020-12-09 17:52:15 +00:00
go.sum azure: add support for service principals - fixes #3230 2020-12-09 17:52:15 +00:00
MAINTAINERS.md compress: finish docs 2020-12-02 16:30:02 +01:00
Makefile build: Stop tagged releases making a current beta - fixes #4789 2020-11-25 09:48:29 +00:00
MANUAL.html Version v1.53.0 2020-09-02 17:00:18 +01:00
MANUAL.md Version v1.53.0 2020-09-02 17:00:18 +01:00
MANUAL.txt Version v1.53.0 2020-09-02 17:00:18 +01:00
notes.txt docs: spelling: etc. 2020-10-28 18:16:23 +00:00
rclone.1 Version v1.53.0 2020-09-02 17:00:18 +01:00
rclone.go lib: add plugin support 2019-09-29 11:05:10 +01:00
README.md compress: finish docs 2020-12-02 16:30:02 +01:00
RELEASE.md build: Stop tagged releases making a current beta - fixes #4789 2020-11-25 09:48:29 +00:00
VERSION Start v1.54.0-DEV development 2020-09-02 17:52:58 +01:00

rclone logo

Website | Documentation | Download | Contributing | Changelog | Installation | Forum

Build Status Go Report Card GoDoc Docker Pulls

Rclone

Rclone ("rsync for cloud storage") is a command line program to sync files and directories to and from different cloud storage providers.

Storage providers

Please see the full list of all storage providers and their features

Features

  • MD5/SHA-1 hashes checked at all times for file integrity
  • Timestamps preserved on files
  • Partial syncs supported on a whole file basis
  • Copy mode to just copy new/changed files
  • Sync (one way) mode to make a directory identical
  • Check mode to check for file hash equality
  • Can sync to and from network, e.g. two different cloud accounts
  • Optional large file chunking (Chunker)
  • Optional transparent compression (Compress)
  • Optional encryption (Crypt)
  • Optional cache (Cache)
  • Optional FUSE mount (rclone mount)
  • Multi-threaded downloads to local disk
  • Can serve local or remote files over HTTP/WebDav/FTP/SFTP/dlna

Installation & documentation

Please see the rclone website for:

Downloads

License

This is free software under the terms of MIT the license (check the COPYING file included in this package).