Skip to content

Split large files #625

Closed
Closed

Description

@mb300sd

It would be nice to have a feature where large files could be split into multiple parts during upload. I'm using rclone to do offsite copying of my virtual machine backups and some of the files are >2TB.

I'm currently running this as a workaround, but it'd be nice to have the functionality built in and avoid many TBs of copying.

$ cat split.sh
#!/bin/bash

for f in *.vbk; do
        if [ $(stat -c %s $f) -gt 53687091200 ]; then
                if [ ! -f "$f!" ]; then
                        split -d -b 50G $f $f.
                        touch "$f!"
                fi
        fi
done

It could also be combined with --size-only so that it checks the sum of the sizes of the uploaded files against the size of the local file.

Activity

  1. ncw commented on Aug 18, 2016

    @ncw
    Member

    This is a good idea, but it is a duplicate of #497 which I've renamed to be easier to find!

    Can you subscribe to that ticket please?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions