2019-08-30 16:18:40 +02:00
|
|
|
---
|
|
|
|
title: "Chunker"
|
|
|
|
description: "Split-chunking overlay remote"
|
2022-12-20 21:05:05 +01:00
|
|
|
versionIntroduced: "v1.50"
|
2022-11-19 13:33:15 +01:00
|
|
|
status: Beta
|
2019-08-30 16:18:40 +02:00
|
|
|
---
|
|
|
|
|
2022-11-19 13:33:15 +01:00
|
|
|
# {{< icon "fa fa-cut" >}} Chunker
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
The `chunker` overlay transparently splits large files into smaller chunks
|
2019-09-25 01:18:30 +02:00
|
|
|
during upload to wrapped remote and transparently assembles them back
|
2019-08-30 16:18:40 +02:00
|
|
|
when the file is downloaded. This allows to effectively overcome size limits
|
|
|
|
imposed by storage providers.
|
|
|
|
|
2021-10-14 15:40:18 +02:00
|
|
|
## Configuration
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
To use it, first set up the underlying remote following the configuration
|
|
|
|
instructions for that remote. You can also use a local pathname instead of
|
|
|
|
a remote.
|
|
|
|
|
|
|
|
First check your chosen remote is working - we'll call it `remote:path` here.
|
|
|
|
Note that anything inside `remote:path` will be chunked and anything outside
|
2021-11-04 12:50:43 +01:00
|
|
|
won't. This means that if you are using a bucket-based remote (e.g. S3, B2, swift)
|
2019-08-30 16:18:40 +02:00
|
|
|
then you should probably put the bucket in the remote `s3:bucket`.
|
|
|
|
|
|
|
|
Now configure `chunker` using `rclone config`. We will call this one `overlay`
|
2019-10-04 03:05:45 +02:00
|
|
|
to separate it from the `remote` itself.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
```
|
2021-11-01 21:34:46 +01:00
|
|
|
No remotes found, make a new one?
|
2019-08-30 16:18:40 +02:00
|
|
|
n) New remote
|
|
|
|
s) Set configuration password
|
|
|
|
q) Quit config
|
|
|
|
n/s/q> n
|
|
|
|
name> overlay
|
|
|
|
Type of storage to configure.
|
|
|
|
Choose a number from below, or type in your own value
|
|
|
|
[snip]
|
|
|
|
XX / Transparently chunk/split large files
|
|
|
|
\ "chunker"
|
|
|
|
[snip]
|
|
|
|
Storage> chunker
|
|
|
|
Remote to chunk/unchunk.
|
2020-10-13 23:49:58 +02:00
|
|
|
Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
|
2019-08-30 16:18:40 +02:00
|
|
|
"myremote:bucket" or maybe "myremote:" (not recommended).
|
2019-09-25 01:18:30 +02:00
|
|
|
Enter a string value. Press Enter for the default ("").
|
2019-08-30 16:18:40 +02:00
|
|
|
remote> remote:path
|
2019-09-25 01:18:30 +02:00
|
|
|
Files larger than chunk size will be split in chunks.
|
2021-03-02 20:11:57 +01:00
|
|
|
Enter a size with suffix K,M,G,T. Press Enter for the default ("2G").
|
2019-09-25 01:18:30 +02:00
|
|
|
chunk_size> 100M
|
2019-10-09 12:24:03 +02:00
|
|
|
Choose how chunker handles hash sums. All modes but "none" require metadata.
|
2019-09-25 01:18:30 +02:00
|
|
|
Enter a string value. Press Enter for the default ("md5").
|
|
|
|
Choose a number from below, or type in your own value
|
2019-10-09 12:24:03 +02:00
|
|
|
1 / Pass any hash supported by wrapped remote for non-chunked files, return nothing otherwise
|
2019-09-25 01:18:30 +02:00
|
|
|
\ "none"
|
2019-10-09 12:24:03 +02:00
|
|
|
2 / MD5 for composite files
|
2019-09-25 01:18:30 +02:00
|
|
|
\ "md5"
|
2019-10-09 12:24:03 +02:00
|
|
|
3 / SHA1 for composite files
|
2019-09-25 01:18:30 +02:00
|
|
|
\ "sha1"
|
2019-10-09 12:24:03 +02:00
|
|
|
4 / MD5 for all files
|
|
|
|
\ "md5all"
|
|
|
|
5 / SHA1 for all files
|
|
|
|
\ "sha1all"
|
|
|
|
6 / Copying a file to chunker will request MD5 from the source falling back to SHA1 if unsupported
|
2019-09-25 01:18:30 +02:00
|
|
|
\ "md5quick"
|
2019-10-09 12:24:03 +02:00
|
|
|
7 / Similar to "md5quick" but prefers SHA1 over MD5
|
2019-09-25 01:18:30 +02:00
|
|
|
\ "sha1quick"
|
|
|
|
hash_type> md5
|
2019-08-30 16:18:40 +02:00
|
|
|
Edit advanced config? (y/n)
|
|
|
|
y) Yes
|
|
|
|
n) No
|
|
|
|
y/n> n
|
|
|
|
Remote config
|
|
|
|
--------------------
|
|
|
|
[overlay]
|
|
|
|
type = chunker
|
2019-09-25 01:18:30 +02:00
|
|
|
remote = remote:bucket
|
|
|
|
chunk_size = 100M
|
|
|
|
hash_type = md5
|
2019-08-30 16:18:40 +02:00
|
|
|
--------------------
|
|
|
|
y) Yes this is OK
|
|
|
|
e) Edit this remote
|
|
|
|
d) Delete this remote
|
|
|
|
y/e/d> y
|
|
|
|
```
|
|
|
|
|
|
|
|
### Specifying the remote
|
|
|
|
|
|
|
|
In normal use, make sure the remote has a `:` in. If you specify the remote
|
|
|
|
without a `:` then rclone will use a local directory of that name.
|
|
|
|
So if you use a remote of `/path/to/secret/files` then rclone will
|
|
|
|
chunk stuff in that directory. If you use a remote of `name` then rclone
|
|
|
|
will put files in a directory called `name` in the current directory.
|
|
|
|
|
|
|
|
|
|
|
|
### Chunking
|
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
When rclone starts a file upload, chunker checks the file size. If it
|
|
|
|
doesn't exceed the configured chunk size, chunker will just pass the file
|
2023-07-23 01:40:50 +02:00
|
|
|
to the wrapped remote (however, see caveat below). If a file is large, chunker will transparently cut
|
2019-08-30 16:18:40 +02:00
|
|
|
data in pieces with temporary names and stream them one by one, on the fly.
|
2019-10-04 03:05:45 +02:00
|
|
|
Each data chunk will contain the specified number of bytes, except for the
|
2019-08-30 16:18:40 +02:00
|
|
|
last one which may have less data. If file size is unknown in advance
|
|
|
|
(this is called a streaming upload), chunker will internally create
|
|
|
|
a temporary copy, record its size and repeat the above process.
|
2019-10-04 03:05:45 +02:00
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
When upload completes, temporary chunk files are finally renamed.
|
2019-10-04 03:05:45 +02:00
|
|
|
This scheme guarantees that operations can be run in parallel and look
|
|
|
|
from outside as atomic.
|
2019-08-30 16:18:40 +02:00
|
|
|
A similar method with hidden temporary chunks is used for other operations
|
2020-10-14 00:07:12 +02:00
|
|
|
(copy/move/rename, etc.). If an operation fails, hidden chunks are normally
|
2019-10-04 03:05:45 +02:00
|
|
|
destroyed, and the target composite file stays intact.
|
|
|
|
|
|
|
|
When a composite file download is requested, chunker transparently
|
|
|
|
assembles it by concatenating data chunks in order. As the split is trivial
|
|
|
|
one could even manually concatenate data chunks together to obtain the
|
|
|
|
original content.
|
|
|
|
|
|
|
|
When the `list` rclone command scans a directory on wrapped remote,
|
|
|
|
the potential chunk files are accounted for, grouped and assembled into
|
|
|
|
composite directory entries. Any temporary chunks are hidden.
|
2019-10-09 11:21:45 +02:00
|
|
|
|
|
|
|
List and other commands can sometimes come across composite files with
|
2020-10-13 23:49:58 +02:00
|
|
|
missing or invalid chunks, e.g. shadowed by like-named directory or
|
2019-10-09 11:21:45 +02:00
|
|
|
another file. This usually means that wrapped file system has been directly
|
|
|
|
tampered with or damaged. If chunker detects a missing chunk it will
|
|
|
|
by default print warning, skip the whole incomplete group of chunks but
|
|
|
|
proceed with current command.
|
|
|
|
You can set the `--chunker-fail-hard` flag to have commands abort with
|
|
|
|
error message in such cases.
|
|
|
|
|
2023-07-23 01:40:50 +02:00
|
|
|
**Caveat**: As it is now, chunker will always create a temporary file in the
|
|
|
|
backend and then rename it, even if the file is below the chunk threshold.
|
|
|
|
This will result in unnecessary API calls and can severely restrict throughput
|
|
|
|
when handling transfers primarily composed of small files on some backends (e.g. Box).
|
|
|
|
A workaround to this issue is to use chunker only for files above the chunk threshold
|
|
|
|
via `--min-size` and then perform a separate call without chunker on the remaining
|
|
|
|
files.
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### Chunk names
|
|
|
|
|
2019-12-04 11:43:58 +01:00
|
|
|
The default chunk name format is `*.rclone_chunk.###`, hence by default
|
|
|
|
chunk names are `BIG_FILE_NAME.rclone_chunk.001`,
|
|
|
|
`BIG_FILE_NAME.rclone_chunk.002` etc. You can configure another name format
|
|
|
|
using the `name_format` configuration file option. The format uses asterisk
|
2019-08-30 16:18:40 +02:00
|
|
|
`*` as a placeholder for the base file name and one or more consecutive
|
2019-09-25 01:18:30 +02:00
|
|
|
hash characters `#` as a placeholder for sequential chunk number.
|
|
|
|
There must be one and only one asterisk. The number of consecutive hash
|
|
|
|
characters defines the minimum length of a string representing a chunk number.
|
|
|
|
If decimal chunk number has less digits than the number of hashes, it is
|
2019-10-04 03:05:45 +02:00
|
|
|
left-padded by zeros. If the decimal string is longer, it is left intact.
|
2019-08-30 16:18:40 +02:00
|
|
|
By default numbering starts from 1 but there is another option that allows
|
2020-10-13 23:49:58 +02:00
|
|
|
user to start from 0, e.g. for compatibility with legacy software.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
For example, if name format is `big_*-##.part` and original file name is
|
|
|
|
`data.txt` and numbering starts from 0, then the first chunk will be named
|
|
|
|
`big_data.txt-00.part`, the 99th chunk will be `big_data.txt-98.part`
|
|
|
|
and the 302nd chunk will become `big_data.txt-301.part`.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-10-04 03:05:45 +02:00
|
|
|
Note that `list` assembles composite directory entries only when chunk names
|
|
|
|
match the configured format and treats non-conforming file names as normal
|
|
|
|
non-chunked files.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2020-10-30 21:30:04 +01:00
|
|
|
When using `norename` transactions, chunk names will additionally have a unique
|
|
|
|
file version suffix. For example, `BIG_FILE_NAME.rclone_chunk.001_bp562k`.
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
### Metadata
|
|
|
|
|
2019-10-04 03:05:45 +02:00
|
|
|
Besides data chunks chunker will by default create metadata object for
|
|
|
|
a composite file. The object is named after the original file.
|
2019-09-25 01:18:30 +02:00
|
|
|
Chunker allows user to disable metadata completely (the `none` format).
|
2019-10-04 03:05:45 +02:00
|
|
|
Note that metadata is normally not created for files smaller than the
|
|
|
|
configured chunk size. This may change in future rclone releases.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### Simple JSON metadata format
|
|
|
|
|
|
|
|
This is the default format. It supports hash sums and chunk validation
|
|
|
|
for composite files. Meta objects carry the following fields:
|
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
- `ver` - version of format, currently `1`
|
|
|
|
- `size` - total size of composite file
|
2019-10-04 03:05:45 +02:00
|
|
|
- `nchunks` - number of data chunks in file
|
2019-09-25 01:18:30 +02:00
|
|
|
- `md5` - MD5 hashsum of composite file (if present)
|
2019-08-30 16:18:40 +02:00
|
|
|
- `sha1` - SHA1 hashsum (if present)
|
2020-10-30 21:30:04 +01:00
|
|
|
- `txn` - identifies current version of the file
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
There is no field for composite file name as it's simply equal to the name
|
|
|
|
of meta object on the wrapped remote. Please refer to respective sections
|
2019-10-04 03:05:45 +02:00
|
|
|
for details on hashsums and modified time handling.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### No metadata
|
|
|
|
|
|
|
|
You can disable meta objects by setting the meta format option to `none`.
|
|
|
|
In this mode chunker will scan directory for all files that follow
|
|
|
|
configured chunk name format, group them by detecting chunks with the same
|
|
|
|
base name and show group names as virtual composite files.
|
2019-10-04 03:05:45 +02:00
|
|
|
This method is more prone to missing chunk errors (especially missing
|
|
|
|
last chunk) than format with metadata enabled.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Hashsums
|
|
|
|
|
|
|
|
Chunker supports hashsums only when a compatible metadata is present.
|
2019-10-04 03:05:45 +02:00
|
|
|
Hence, if you choose metadata format of `none`, chunker will report hashsum
|
|
|
|
as `UNSUPPORTED`.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-10-09 12:24:03 +02:00
|
|
|
Please note that by default metadata is stored only for composite files.
|
|
|
|
If a file is smaller than configured chunk size, chunker will transparently
|
2019-08-30 16:18:40 +02:00
|
|
|
redirect hash requests to wrapped remote, so support depends on that.
|
|
|
|
You will see the empty string as a hashsum of requested type for small
|
|
|
|
files if the wrapped remote doesn't support it.
|
|
|
|
|
|
|
|
Many storage backends support MD5 and SHA1 hash types, so does chunker.
|
2019-10-04 03:05:45 +02:00
|
|
|
With chunker you can choose one or another but not both.
|
2019-08-30 16:18:40 +02:00
|
|
|
MD5 is set by default as the most supported type.
|
|
|
|
Since chunker keeps hashes for composite files and falls back to the
|
2019-10-04 03:05:45 +02:00
|
|
|
wrapped remote hash for non-chunked ones, we advise you to choose the same
|
|
|
|
hash type as supported by wrapped remote so that your file listings
|
|
|
|
look coherent.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-10-09 12:24:03 +02:00
|
|
|
If your storage backend does not support MD5 or SHA1 but you need consistent
|
|
|
|
file hashing, configure chunker with `md5all` or `sha1all`. These two modes
|
|
|
|
guarantee given hash for all files. If wrapped remote doesn't support it,
|
|
|
|
chunker will then add metadata to all files, even small. However, this can
|
|
|
|
double the amount of small files in storage and incur additional service charges.
|
2019-12-04 11:43:58 +01:00
|
|
|
You can even use chunker to force md5/sha1 support in any other remote
|
2023-05-17 18:10:53 +02:00
|
|
|
at expense of sidecar meta objects by setting e.g. `hash_type=sha1all`
|
2019-12-04 11:43:58 +01:00
|
|
|
to force hashsums and `chunk_size=1P` to effectively disable chunking.
|
2019-10-09 12:24:03 +02:00
|
|
|
|
2019-10-04 03:05:45 +02:00
|
|
|
Normally, when a file is copied to chunker controlled remote, chunker
|
2019-09-25 01:18:30 +02:00
|
|
|
will ask the file source for compatible file hash and revert to on-the-fly
|
2019-08-30 16:18:40 +02:00
|
|
|
calculation if none is found. This involves some CPU overhead but provides
|
|
|
|
a guarantee that given hashsum is available. Also, chunker will reject
|
|
|
|
a server-side copy or move operation if source and destination hashsum
|
2019-10-04 03:05:45 +02:00
|
|
|
types are different resulting in the extra network bandwidth, too.
|
2019-08-30 16:18:40 +02:00
|
|
|
In some rare cases this may be undesired, so chunker provides two optional
|
2019-09-25 01:18:30 +02:00
|
|
|
choices: `sha1quick` and `md5quick`. If the source does not support primary
|
2019-08-30 16:18:40 +02:00
|
|
|
hash type and the quick mode is enabled, chunker will try to fall back to
|
|
|
|
the secondary type. This will save CPU and bandwidth but can result in empty
|
|
|
|
hashsums at destination. Beware of consequences: the `sync` command will
|
|
|
|
revert (sometimes silently) to time/size comparison if compatible hashsums
|
|
|
|
between source and target are not found.
|
|
|
|
|
|
|
|
|
2023-11-18 13:36:46 +01:00
|
|
|
### Modification times
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
Chunker stores modification times using the wrapped remote so support
|
|
|
|
depends on that. For a small non-chunked file the chunker overlay simply
|
|
|
|
manipulates modification time of the wrapped remote file.
|
2019-10-04 03:05:45 +02:00
|
|
|
For a composite file with metadata chunker will get and set
|
2019-08-30 16:18:40 +02:00
|
|
|
modification time of the metadata object on the wrapped remote.
|
|
|
|
If file is chunked but metadata format is `none` then chunker will
|
2019-10-04 03:05:45 +02:00
|
|
|
use modification time of the first data chunk.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Migrations
|
|
|
|
|
2020-10-30 21:30:04 +01:00
|
|
|
The idiomatic way to migrate to a different chunk size, hash type, transaction
|
|
|
|
style or chunk naming scheme is to:
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
- Collect all your chunked files under a directory and have your
|
|
|
|
chunker remote point to it.
|
2019-10-04 03:05:45 +02:00
|
|
|
- Create another directory (most probably on the same cloud storage)
|
2019-08-30 16:18:40 +02:00
|
|
|
and configure a new remote with desired metadata format,
|
|
|
|
hash type, chunk naming etc.
|
2023-01-20 21:47:36 +01:00
|
|
|
- Now run `rclone sync --interactive oldchunks: newchunks:` and all your data
|
2019-10-04 03:05:45 +02:00
|
|
|
will be transparently converted in transfer.
|
2019-09-25 01:18:30 +02:00
|
|
|
This may take some time, yet chunker will try server-side
|
|
|
|
copy if possible.
|
2019-08-30 16:18:40 +02:00
|
|
|
- After checking data integrity you may remove configuration section
|
|
|
|
of the old remote.
|
|
|
|
|
|
|
|
If rclone gets killed during a long operation on a big composite file,
|
|
|
|
hidden temporary chunks may stay in the directory. They will not be
|
2019-09-25 01:18:30 +02:00
|
|
|
shown by the `list` command but will eat up your account quota.
|
2019-10-04 03:05:45 +02:00
|
|
|
Please note that the `deletefile` command deletes only active
|
2019-08-30 16:18:40 +02:00
|
|
|
chunks of a file. As a workaround, you can use remote of the wrapped
|
|
|
|
file system to see them.
|
|
|
|
An easy way to get rid of hidden garbage is to copy littered directory
|
2019-10-04 03:05:45 +02:00
|
|
|
somewhere using the chunker remote and purge the original directory.
|
2019-08-30 16:18:40 +02:00
|
|
|
The `copy` command will copy only active chunks while the `purge` will
|
|
|
|
remove everything including garbage.
|
|
|
|
|
|
|
|
|
|
|
|
### Caveats and Limitations
|
|
|
|
|
2020-10-13 23:43:40 +02:00
|
|
|
Chunker requires wrapped remote to support server-side `move` (or `copy` +
|
2019-09-25 01:18:30 +02:00
|
|
|
`delete`) operations, otherwise it will explicitly refuse to start.
|
2019-08-30 16:18:40 +02:00
|
|
|
This is because it internally renames temporary chunk files to their final
|
|
|
|
names when an operation completes successfully.
|
|
|
|
|
2019-12-04 11:43:58 +01:00
|
|
|
Chunker encodes chunk number in file name, so with default `name_format`
|
|
|
|
setting it adds 17 characters. Also chunker adds 7 characters of temporary
|
|
|
|
suffix during operations. Many file systems limit base file name without path
|
|
|
|
by 255 characters. Using rclone's crypt remote as a base file system limits
|
|
|
|
file name by 143 characters. Thus, maximum name length is 231 for most files
|
|
|
|
and 119 for chunker-over-crypt. A user in need can change name format to
|
2020-10-13 23:49:58 +02:00
|
|
|
e.g. `*.rcc##` and save 10 characters (provided at most 99 chunks per file).
|
2019-12-04 11:43:58 +01:00
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
Note that a move implemented using the copy-and-delete method may incur
|
|
|
|
double charging with some cloud storage providers.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
Chunker will not automatically rename existing chunks when you run
|
|
|
|
`rclone config` on a live remote and change the chunk name format.
|
|
|
|
Beware that in result of this some files which have been treated as chunks
|
|
|
|
before the change can pop up in directory listings as normal files
|
|
|
|
and vice versa. The same warning holds for the chunk size.
|
2020-05-19 13:02:44 +02:00
|
|
|
If you desperately need to change critical chunking settings, you should
|
2019-10-04 03:05:45 +02:00
|
|
|
run data migration as described above.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
If wrapped remote is case insensitive, the chunker overlay will inherit
|
|
|
|
that property (so you can't have a file called "Hello.doc" and "hello.doc"
|
|
|
|
in the same directory).
|
|
|
|
|
2021-01-04 02:08:22 +01:00
|
|
|
Chunker included in rclone releases up to `v1.54` can sometimes fail to
|
|
|
|
detect metadata produced by recent versions of rclone. We recommend users
|
|
|
|
to keep rclone up-to-date to avoid data corruption.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2020-10-30 21:30:04 +01:00
|
|
|
Changing `transactions` is dangerous and requires explicit migration.
|
|
|
|
|
2020-05-22 13:22:52 +02:00
|
|
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/chunker/chunker.go then run make backenddocs" >}}
|
2021-11-01 16:42:05 +01:00
|
|
|
### Standard options
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2022-07-09 19:08:20 +02:00
|
|
|
Here are the Standard options specific to chunker (Transparently chunk/split large files).
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### --chunker-remote
|
|
|
|
|
|
|
|
Remote to chunk/unchunk.
|
2021-11-01 16:42:05 +01:00
|
|
|
|
2020-10-13 23:49:58 +02:00
|
|
|
Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
|
2019-08-30 16:18:40 +02:00
|
|
|
"myremote:bucket" or maybe "myremote:" (not recommended).
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
- Config: remote
|
|
|
|
- Env Var: RCLONE_CHUNKER_REMOTE
|
|
|
|
- Type: string
|
2022-03-18 13:29:54 +01:00
|
|
|
- Required: true
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### --chunker-chunk-size
|
|
|
|
|
|
|
|
Files larger than chunk size will be split in chunks.
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
- Config: chunk_size
|
|
|
|
- Env Var: RCLONE_CHUNKER_CHUNK_SIZE
|
|
|
|
- Type: SizeSuffix
|
2021-07-20 20:45:41 +02:00
|
|
|
- Default: 2Gi
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
#### --chunker-hash-type
|
|
|
|
|
2021-11-01 16:42:05 +01:00
|
|
|
Choose how chunker handles hash sums.
|
|
|
|
|
|
|
|
All modes but "none" require metadata.
|
2019-09-25 01:18:30 +02:00
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-09-25 01:18:30 +02:00
|
|
|
- Config: hash_type
|
|
|
|
- Env Var: RCLONE_CHUNKER_HASH_TYPE
|
|
|
|
- Type: string
|
|
|
|
- Default: "md5"
|
|
|
|
- Examples:
|
|
|
|
- "none"
|
2021-11-01 16:42:05 +01:00
|
|
|
- Pass any hash supported by wrapped remote for non-chunked files.
|
|
|
|
- Return nothing otherwise.
|
2019-09-25 01:18:30 +02:00
|
|
|
- "md5"
|
2021-11-01 16:42:05 +01:00
|
|
|
- MD5 for composite files.
|
2019-09-25 01:18:30 +02:00
|
|
|
- "sha1"
|
2021-11-01 16:42:05 +01:00
|
|
|
- SHA1 for composite files.
|
2019-10-09 12:24:03 +02:00
|
|
|
- "md5all"
|
2021-11-01 16:42:05 +01:00
|
|
|
- MD5 for all files.
|
2019-10-09 12:24:03 +02:00
|
|
|
- "sha1all"
|
2021-11-01 16:42:05 +01:00
|
|
|
- SHA1 for all files.
|
2019-09-25 01:18:30 +02:00
|
|
|
- "md5quick"
|
2021-11-01 16:42:05 +01:00
|
|
|
- Copying a file to chunker will request MD5 from the source.
|
|
|
|
- Falling back to SHA1 if unsupported.
|
2019-09-25 01:18:30 +02:00
|
|
|
- "sha1quick"
|
2021-11-01 16:42:05 +01:00
|
|
|
- Similar to "md5quick" but prefers SHA1 over MD5.
|
2019-09-25 01:18:30 +02:00
|
|
|
|
2021-11-01 16:42:05 +01:00
|
|
|
### Advanced options
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2022-07-09 19:08:20 +02:00
|
|
|
Here are the Advanced options specific to chunker (Transparently chunk/split large files).
|
2019-08-30 16:18:40 +02:00
|
|
|
|
|
|
|
#### --chunker-name-format
|
|
|
|
|
|
|
|
String format of chunk file names.
|
2021-11-01 16:42:05 +01:00
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
The two placeholders are: base file name (*) and chunk number (#...).
|
|
|
|
There must be one and only one asterisk and one or more consecutive hash characters.
|
|
|
|
If chunk number has less digits than the number of hashes, it is left-padded by zeros.
|
|
|
|
If there are more digits in the number, they are left as is.
|
|
|
|
Possible chunk files are ignored if their name does not match given format.
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
- Config: name_format
|
|
|
|
- Env Var: RCLONE_CHUNKER_NAME_FORMAT
|
|
|
|
- Type: string
|
|
|
|
- Default: "*.rclone_chunk.###"
|
|
|
|
|
|
|
|
#### --chunker-start-from
|
|
|
|
|
|
|
|
Minimum valid chunk number. Usually 0 or 1.
|
2021-11-01 16:42:05 +01:00
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
By default chunk numbers start from 1.
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
- Config: start_from
|
|
|
|
- Env Var: RCLONE_CHUNKER_START_FROM
|
|
|
|
- Type: int
|
|
|
|
- Default: 1
|
|
|
|
|
|
|
|
#### --chunker-meta-format
|
|
|
|
|
2021-11-01 16:42:05 +01:00
|
|
|
Format of the metadata object or "none".
|
|
|
|
|
|
|
|
By default "simplejson".
|
2019-08-30 16:18:40 +02:00
|
|
|
Metadata is a small JSON file named after the composite file.
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-08-30 16:18:40 +02:00
|
|
|
- Config: meta_format
|
|
|
|
- Env Var: RCLONE_CHUNKER_META_FORMAT
|
|
|
|
- Type: string
|
|
|
|
- Default: "simplejson"
|
|
|
|
- Examples:
|
|
|
|
- "none"
|
2021-11-01 16:42:05 +01:00
|
|
|
- Do not use metadata files at all.
|
|
|
|
- Requires hash type "none".
|
2019-08-30 16:18:40 +02:00
|
|
|
- "simplejson"
|
|
|
|
- Simple JSON supports hash sums and chunk validation.
|
2021-11-01 16:42:05 +01:00
|
|
|
-
|
2019-10-04 03:05:45 +02:00
|
|
|
- It has the following fields: ver, size, nchunks, md5, sha1.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-10-09 11:21:45 +02:00
|
|
|
#### --chunker-fail-hard
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2019-10-09 11:21:45 +02:00
|
|
|
Choose how chunker should handle files with missing or invalid chunks.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2019-10-09 11:21:45 +02:00
|
|
|
- Config: fail_hard
|
|
|
|
- Env Var: RCLONE_CHUNKER_FAIL_HARD
|
2019-08-30 16:18:40 +02:00
|
|
|
- Type: bool
|
|
|
|
- Default: false
|
|
|
|
- Examples:
|
|
|
|
- "true"
|
2019-10-09 11:21:45 +02:00
|
|
|
- Report errors and abort current command.
|
2019-08-30 16:18:40 +02:00
|
|
|
- "false"
|
2019-10-09 11:21:45 +02:00
|
|
|
- Warn user, skip incomplete file and proceed.
|
2019-08-30 16:18:40 +02:00
|
|
|
|
2021-03-31 20:12:08 +02:00
|
|
|
#### --chunker-transactions
|
|
|
|
|
|
|
|
Choose how chunker should handle temporary files during transactions.
|
|
|
|
|
2022-03-18 13:29:54 +01:00
|
|
|
Properties:
|
|
|
|
|
2021-03-31 20:12:08 +02:00
|
|
|
- Config: transactions
|
|
|
|
- Env Var: RCLONE_CHUNKER_TRANSACTIONS
|
|
|
|
- Type: string
|
|
|
|
- Default: "rename"
|
|
|
|
- Examples:
|
|
|
|
- "rename"
|
|
|
|
- Rename temporary files after a successful transaction.
|
|
|
|
- "norename"
|
|
|
|
- Leave temporary file names and write transaction ID to metadata file.
|
|
|
|
- Metadata is required for no rename transactions (meta format cannot be "none").
|
|
|
|
- If you are using norename transactions you should be careful not to downgrade Rclone
|
|
|
|
- as older versions of Rclone don't support this transaction style and will misinterpret
|
|
|
|
- files manipulated by norename transactions.
|
|
|
|
- This method is EXPERIMENTAL, don't use on production systems.
|
|
|
|
- "auto"
|
|
|
|
- Rename or norename will be used depending on capabilities of the backend.
|
|
|
|
- If meta format is set to "none", rename transactions will always be used.
|
|
|
|
- This method is EXPERIMENTAL, don't use on production systems.
|
|
|
|
|
2024-03-10 12:22:43 +01:00
|
|
|
#### --chunker-description
|
|
|
|
|
2024-06-14 17:04:51 +02:00
|
|
|
Description of the remote.
|
2024-03-10 12:22:43 +01:00
|
|
|
|
|
|
|
Properties:
|
|
|
|
|
|
|
|
- Config: description
|
|
|
|
- Env Var: RCLONE_CHUNKER_DESCRIPTION
|
|
|
|
- Type: string
|
|
|
|
- Required: false
|
|
|
|
|
2020-05-22 13:22:52 +02:00
|
|
|
{{< rem autogenerated options stop >}}
|