You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so I figure this might be out of scope for rclone, but figured I'd ask anyways. Now that rclone is working for me with acd I can't maintain network connections for really large files.
might it be possible to add a file chunking to rclone (so that I can mark one of the repos as chunked so large files are written in small file chunks to a chunked destination, but converted to a whole if copied to a non chunked destination.
this way even for sites that don't support resemble uploads, one can have effective support for it.
Reacted by Stefan, Rob Calistri, Colin Yates, Dennis lichtenthäler, Evan Harris, pskuza, Christoph, Drathus, Takafumi Koyama, David Li and 24 more
My question is though, would the chunks be resumable? The current reason why I split my chunks is to resume my upload when stuff hits the fan. If the chunks were resumable, and a customizable size (I.E. 1GB, which is what I currently do), then it'd be amazing as it'd save me the massive disk I/O of splitting them prior to uploading.
Yes the chunks would be resumable. The way it would work is as an overlay or modification of the local file system. Big files would appear as bigfile.1 bigfile.2 etc and these would sync separately. So if one part failed you could retry it.
It'd be more secure if it wasn't obvious which chunks made up a file.
It'd be even more secure if a local upload cache was maintained, with chunks uploaded in a random order, so even checking the order in which chunks are uploaded wouldn't reveal which blobs make up a single file.
It'd be great if the solution addressed #666 too. IMHO these are the only missing features of rclone. It's great, thanks!
ah, saw the comment about an overlay fs. I agree it could be done that way, though another dependency and requires the same fs on all OSs one wants to use rclone with
I'm looking forward to this because of the 50G Amazon Cloud file limit that seems to be in place. Maybe we can make it so split files can be recombined with cat? would be useful if a web browser was only available in a pinch.
Reacted by doplu, xyxxyxxy, pskuza, Jim Myhrberg and Francesco Yoshi Gobbo
I'd really like this but only if the block size was configurable (10MB blocks would work better with my poor bandwidth) and transparent, so, for example, it did nothing more than split at 10MB blocks, no obfuscating or mangling please :-). I think libraries that leave data-at-rest in an easily recoverable format are much more preferable to those where re-assembly requires the lib.
That looks like a great bit of work - thank you :-)
Let me know if you need any help with the last bits and pieces.
I had some idea that we might auto wrap the destination if the --chunk flag was supplied - what do you think of that idea? Or you could use --chunker-remote remote: :chunker:...
TL;DR I would be reluctant to add a new CLI flag.
First, having all chunking options packed in a single --chunk flag would put a rigid contract on the chunking wrapper (and more chunkers may appear in the future). I would first let the first chunker out in the wild and let use cases calm down.
Second, perhaps a --chunker-remote flag is OK as a shortcut, but we then logically come to a --crypt-remote and --whatever-remote. Why not stick to the single --wrapper-remote then? Also, if a user runs rclone with --chunker-remote=chunker1, and then with --chunker-remote=chunker2 with a diferent set of options, she would suddenly find the filesystem thrashed with previously hidden whatever.chunker1.001 files. I would rather have this hardcoded in a more static manner in config file.
Last, rclone already has an overwhelming number of CLI flags all mixed in a single "namespace" from different backends and usage scenarios.
TL;DR I would be reluctant to add a new CLI flag.
First, having all chunking options packed in a single --chunk flag would put a rigid contract on the chunking wrapper (and more chunkers may appear in the future). I would first let the first chunker out in the wild and let use cases calm down.
Note that all backend options are available as flags, so the ones you've defined already will become flags automatically.
Second, perhaps a --chunker-remote flag is OK as a shortcut, but we then logically come to a --crypt-remote and --whatever-remote.
A crypt setup from command line parameters is possible now. It needs too many parameters to be sensible though.
Why not stick to the single --wrapper-remote then? Also, if a user runs rclone with --chunker-remote=chunker1, and then with --chunker-remote=chunker2 with a diferent set of options, she would suddenly find the filesystem thrashed with previously hidden whatever.chunker1.001 files. I would rather have this hardcoded in a more static manner in config file.
Fair enough.
Last, rclone already has an overwhelming number of CLI flags all mixed in a single "namespace" from different backends and usage scenarios.
How would this play with sparse files at source? Would this facilitate being able to upload a sparse file by not transferring chunks that are purely holes?
Since OpenDrive also has issues with accepting files over 10GB (it seems to be unable to find the Temp file and then claims it's closed altogether looking at the -vv log) I would absolutely love this feature to become a reality. Some file hosts are absolutely terrible with large files. I know chunking works very well for OpenDrive because I tried it with another software. Nothing beats RClone though in all other regards so I would love to also have this feature here.
The original request is implemented by #3503 and #3571 allowing to overcome size limits.
Chunk resuming is not implemented, this needs a separate ticket.
Activity
ncw commentedon May 24, 2016
I see what you mean - nice idea.
sjpotter commentedon May 24, 2016
Id also note that files under a certain size wouldn't have to be chunked.
[-]chunk large files?[/-][+]chunk/split large files?[/+]ncw commentedon Aug 18, 2016
This could be implemented using an overlay file system in a similar way to crypt
Technifocal commentedon Aug 19, 2016
My question is though, would the chunks be resumable? The current reason why I split my chunks is to resume my upload when stuff hits the fan. If the chunks were resumable, and a customizable size (I.E. 1GB, which is what I currently do), then it'd be amazing as it'd save me the massive disk I/O of splitting them prior to uploading.
ncw commentedon Aug 19, 2016
Yes the chunks would be resumable. The way it would work is as an overlay or modification of the local file system. Big files would appear as bigfile.1 bigfile.2 etc and these would sync separately. So if one part failed you could retry it.
ermint commentedon Sep 4, 2016
It'd be more secure if it wasn't obvious which chunks made up a file.
It'd be even more secure if a local upload cache was maintained, with chunks uploaded in a random order, so even checking the order in which chunks are uploaded wouldn't reveal which blobs make up a single file.
It'd be great if the solution addressed #666 too. IMHO these are the only missing features of rclone. It's great, thanks!
sjpotter commentedon Oct 11, 2016
ah, saw the comment about an overlay fs. I agree it could be done that way, though another dependency and requires the same fs on all OSs one wants to use rclone with
ShapeShifter499 commentedon Oct 12, 2016
I'm looking forward to this because of the 50G Amazon Cloud file limit that seems to be in place. Maybe we can make it so split files can be recombined with cat? would be useful if a web browser was only available in a pinch.
lolvince commentedon Dec 5, 2016
Hello, I come to the news regarding this function ...
yatesco commentedon Dec 9, 2016
I'd really like this but only if the block size was configurable (10MB blocks would work better with my poor bandwidth) and transparent, so, for example, it did nothing more than split at 10MB blocks, no obfuscating or mangling please :-). I think libraries that leave data-at-rest in an easily recoverable format are much more preferable to those where re-assembly requires the lib.
19 remaining items
zenjabba commentedon Mar 11, 2019
Any update on getting around box.com 5GB limitations?
zhendosina commentedon Jun 28, 2019
great idea, any news?
cjreyn commentedon Jul 2, 2019
+1 for this
ivandeex commentedon Jul 2, 2019
Hi Nick. I am preparing a PR, which implements the chunker backend for rclone. I am still writing the documentation and working on the last failing integration test. Planning to submit the PR this month. In the meantime everybody interested can download beta binaries from the releases page. https://github.com/ivandeex/rclone
ncw commentedon Jul 4, 2019
That looks like a great bit of work - thank you :-)
Let me know if you need any help with the last bits and pieces.
I had some idea that we might auto wrap the destination if the
--chunkflag was supplied - what do you think of that idea? Or you could use--chunker-remote remote: :chunker:...ivandeex commentedon Jul 4, 2019
TL;DR I would be reluctant to add a new CLI flag.
First, having all chunking options packed in a single
--chunkflag would put a rigid contract on the chunking wrapper (and more chunkers may appear in the future). I would first let the first chunker out in the wild and let use cases calm down.Second, perhaps a
--chunker-remoteflag is OK as a shortcut, but we then logically come to a--crypt-remoteand--whatever-remote. Why not stick to the single--wrapper-remotethen? Also, if a user runs rclone with --chunker-remote=chunker1, and then with --chunker-remote=chunker2 with a diferent set of options, she would suddenly find the filesystem thrashed with previously hiddenwhatever.chunker1.001files. I would rather have this hardcoded in a more static manner in config file.Last, rclone already has an overwhelming number of CLI flags all mixed in a single "namespace" from different backends and usage scenarios.
ncw commentedon Jul 4, 2019
Note that all backend options are available as flags, so the ones you've defined already will become flags automatically.
A crypt setup from command line parameters is possible now. It needs too many parameters to be sensible though.
Fair enough.
It certainly isn't pretty!
There are 3 classes of flags, the ones for the command you are using, the global flags and the backend config - see https://rclone.org/flags/
gordan-bobic commentedon Jul 17, 2019
How would this play with sparse files at source? Would this facilitate being able to upload a sparse file by not transferring chunks that are purely holes?
Loewkie commentedon Sep 12, 2019
Since OpenDrive also has issues with accepting files over 10GB (it seems to be unable to find the Temp file and then claims it's closed altogether looking at the -vv log) I would absolutely love this feature to become a reality. Some file hosts are absolutely terrible with large files. I know chunking works very well for OpenDrive because I tried it with another software. Nothing beats RClone though in all other regards so I would love to also have this feature here.
ivandeex commentedon Sep 25, 2019
The original request is implemented by #3503 and #3571 allowing to overcome size limits.
Chunk resuming is not implemented, this needs a separate ticket.
ncw commentedon Sep 26, 2019
Thank you for implementing this @ivandeex :-)
I'm going to mark this ticket as done...
Would you like to make another ticket about that?
lbakyl commentedon Feb 25, 2020
Hi, I did not know that someone else was working on the the chunker option and it is great that it is integrated to rClone. So I created my own Python script that does it. Perhaps it could be useful for someone. I tested it on Synology, Mac OS X and Windows 10.
https://github.com/lbakyl/rClone_chunking