itzg / docker-mc-backup

Provides a side-car container to backup itzg/minecraft-server world data
https://hub.docker.com/r/itzg/mc-backup
MIT License
332 stars 52 forks source link

Split to multiple files #161

Open brommeltje opened 11 months ago

brommeltje commented 11 months ago

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

itzg commented 11 months ago

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?

brommeltje commented 11 months ago

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.

itzg commented 11 months ago

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.

brommeltje commented 11 months ago

I'll gladly leave it up to you.