CTCaer / hekate

hekate - A GUI based Nintendo Switch Bootloader
GNU General Public License v2.0
6.78k stars 577 forks source link

[Enhancement] minimized backup size #1017

Closed tldzyx closed 1 month ago

tldzyx commented 1 month ago

I found the first rawnand.bin and/or emuMMC to have an amazing compression rate (from 59640MB to 736.65MB). image

But as you upgrade or use, even if you uninstall the game to free up space, the compression rate becomes poor.

I also tried to initialize the system and then make a backup, but this made the compression rate even worse.

Later, by accident, I found that the compression rate of the reconstructed backup was restored when I used the original backup to restore it.

So I guess that the backup is to save the flash card byte by byte, but many locations of the new flash card are not written any data into it, is this the reason for the high compression rate? So I looked up the data, can TRIM/erase the used flash memory card, so that the flash memory card is restored to the state of not writing, if so, can you reduce the size of the backup file?

But I don't know how to operate and verify the above ideas. Is there anyone who knows relevant technology who can make an attempt?

tldzyx commented 1 month ago

maybe File-level SAFE/SYSTEM/USER backup/restore #50 is my want, my stupid, so I close this.

I just want backup/restore image can be more faster and/or smaller.