pcal43 / fastback

Fast, incremental Minecraft world backups. Powered by Git.
https://pcal43.github.io/fastback/
GNU General Public License v2.0
125 stars 19 forks source link

Using Git directly results in better compression than fastback #299

Open Merith-TK opened 8 months ago

Merith-TK commented 8 months ago

Did the git commands by hand this time and it seems that using fastback results in less git compression than if I just ran git directly?

world init done by loading flatworld, looking around without moving to ensure chunks are loaded, saving and exit, World iterations done by copy/pasting/renaming world folder to new name to get the seperated folders

FastBack testing image

direct git testing (compared both git commit and git checkout --orphan empty-branch for this, results were the same in terms of storage) image

bruglet commented 4 months ago

This is probably because FastBack intentionally doesn't use delta compression, which I assume regular git does. It probably causes issues with large files like Minecraft saves perhaps?

From the FAQ:

Technical detail: FastBack disables delta compression, stores each backup snapshot in an orphan branch and aggressively prunes reflogs and tracking branches.*