framps / raspiBackup

Create and keep multiple backup versions of your running Raspberries
https://raspibackup.linux-tips-and-tricks.de
GNU General Public License v3.0
821 stars 75 forks source link

Request: Support for compressing /boot image #773

Closed FolkertRA closed 2 months ago

FolkertRA commented 3 months ago

Hi, I notice that on every backup, in image of the entire boot partition is made. In my case ~250MB, while about 50MB of that is actually used. Since it's a single .img file, the incremental backup principle does not apply: every backup requires this 250MB. Would it be possible to add a function to compress this image? (and then to decompress it again for recovery)

edit: Sorry, just realize that this option is probably there by using DEFAULT_ZIP_BACKUP=1 in the config file. I will give this a try first and if it works close this issue.

edit2: No this did not work, option is not allowed for an "rsync" backup. So I still think this is a good idea :)

framps commented 3 months ago

Frankly for me it doesn't matter whether 250MB or 50MB are used (I use raspiBackup to backup my Raspberries - use what you publish :wink:)

But a long time ago I got a similar request to reduce the space requirements for the boot partition. If you use option -B a tar backup of the boot partition will be created which will consume only the used space.

In addition there exists option DEFAULT_LINK_BOOTPARTITIONFILES in the config file which creates hard links to the previous created boot partition backup if it exists and reduces the required backup space much more.

For the option details see here

Please try these options :wink:

github-actions[bot] commented 2 months ago

This issue is considered stale now and will be closed in 1 week if there is no activity any more