jamstah•

casync is super interesting as well.

3
ach-en-wee•

Nice job on the scripts! Have you looked into duplicity? It even has a One Drive backend.

3
TGiFallenOP•

Thank you!

It doesn't look like duplicity has file splitting?

2
ach-en-wee•

Oh it does actually. It stores everything in splitted tarballs like this.

3
TGiFallenOP•

Hi everyone!

I made these two little scripts out of personal need. I'm backing up some (encrypted) files to One Drive via rclone, but the max file size is 10GB and some of my files exceed that, so I made this to help me.

point split-recursive at a directory and give it a split size (default 10G) to split all files inside it and write a list of those files and their md5 checksums to splitfiles.txt:

split-recursive ./your-dir 1G    

and point merge-recursive at the same folder (the one with splitfiles.txt in it) to merge them:

merge-recursive ./your-dir

merge recursive also checks the integrity of the files after reconstructing them using the md5sum saved in the splitfiles.txt

2
AnachronGuy•

Hey,

good job on the scripts!

Have you looked at borg backup?

It may just be what you are looking for.

Greetings!

6
TGiFallenOP•

Thanks!

just took a look at borg backup, didn't know it did file splitting too. It does seem like it could do what I need, but it's a bit overkill for what I'm backing up right now. Only backing up Music ATM.

2
fredmorcos•

So >10G music files?

2
TGiFallenOP•

Yes, some of them are archives that exceed that.

I'm also now using it to backup movies and other things as well.

1
[deleted]•

[deleted]

1
frutiger•

You could use tar(1) to combine a directory into a single file and the standard split(1) and cat(1) commands to split a file and join multiple files respectively.

EDIT: maybe that's what your scripts do!

1
[deleted]•

[deleted]

-1
TGiFallenOP•

...That's exactly what these scripts are using.

1
frutiger•

I thought I deleted this comment after looking at your scripts, but evidently I did not!

1