Skip to content

chunk/split large files? #497

Closed
Closed

Description

@sjpotter

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.

Activity

  1. ncw commented on May 24, 2016

    @ncw
    Member

    I see what you mean - nice idea.

  2. sjpotter commented on May 24, 2016

    @sjpotter
    Author

    Id also note that files under a certain size wouldn't have to be chunked.

  3. added this to the milestone on Jul 15, 2016
  4. changed the title [-]chunk large files?[/-] [+]chunk/split large files?[/+] on Aug 18, 2016
  5. ncw commented on Aug 18, 2016

    @ncw
    Member

    This could be implemented using an overlay file system in a similar way to crypt

  6. Technifocal commented on Aug 19, 2016

    @Technifocal

    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.

  7. ncw commented on Aug 19, 2016

    @ncw
    Member

    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.

  8. modified the milestones: Soon, on Aug 25, 2016
  9. ermint commented on Sep 4, 2016

    @ermint

    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!

  10. sjpotter commented on Oct 11, 2016

    @sjpotter
    Author

    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

  11. ShapeShifter499 commented on Oct 12, 2016

    @ShapeShifter499

    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.

  12. lolvince commented on Dec 5, 2016

    @lolvince

    Hello, I come to the news regarding this function ...

  13. yatesco commented on Dec 9, 2016

    @yatesco

    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.

  14. 19 remaining items

  15. zenjabba commented on Mar 11, 2019

    @zenjabba

    Any update on getting around box.com 5GB limitations?

  16. zhendosina commented on Jun 28, 2019

    @zhendosina

    great idea, any news?

  17. cjreyn commented on Jul 2, 2019

    @cjreyn

    +1 for this

  18. ivandeex commented on Jul 2, 2019

    @ivandeex
    Member

    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

  19. ncw commented on Jul 4, 2019

    @ncw
    Member

    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

    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:...

  20. ivandeex commented on Jul 4, 2019

    @ivandeex
    Member

    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.

  21. ncw commented on Jul 4, 2019

    @ncw
    Member

    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.

    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/

  22. gordan-bobic commented on Jul 17, 2019

    @gordan-bobic

    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?

  23. Loewkie commented on Sep 12, 2019

    @Loewkie

    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.

  24. ivandeex commented on Sep 25, 2019

    @ivandeex
    Member

    The original request is implemented by #3503 and #3571 allowing to overcome size limits.
    Chunk resuming is not implemented, this needs a separate ticket.

  25. ncw commented on Sep 26, 2019

    @ncw
    Member

    Thank you for implementing this @ivandeex :-)

    I'm going to mark this ticket as done...

    Chunk resuming is not implemented, this needs a separate ticket.

    Would you like to make another ticket about that?

  26. modified the milestones: Soon, v1.50 on Sep 26, 2019
  27. lbakyl commented on Feb 25, 2020

    @lbakyl

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions