docker-mc-backup icon indicating copy to clipboard operation
docker-mc-backup copied to clipboard

Split to multiple files

Open brommeltje opened this issue 1 year ago • 4 comments

Is it possible to split the file up to multiple smaller tgz files. My cloud storage tool has some problems with +1gb files.

brommeltje avatar Dec 04 '23 11:12 brommeltje

That will be dependent on what restic, rclone, and/or tar can support. Any chance you can research output file splitting provided by any of those?

itzg avatar Dec 06 '23 13:12 itzg

The thing i could find: You can pipe tar to the split command: tar cvzf - dir/ | split --bytes=700MB - sda1.backup.tar.gz. or tar cvzf - dir/ | split -b 700m - sda1.backup.tar.gz.

restic, rclone i'm afraid i know even less about.

brommeltje avatar Dec 08 '23 08:12 brommeltje

That seems like a good approach and would fine to be supported for tar backup method only.

Want to make the code change 😀? If not, I can queue it up to work on.

itzg avatar Dec 08 '23 13:12 itzg

I'll gladly leave it up to you.

brommeltje avatar Dec 08 '23 14:12 brommeltje