#2347 PR merged: Overhauled ISO_MAX_SIZE implementation in 500_make_backup.sh

Labels: enhancement, cleanup, fixed / solved / done, minor bug

jsmeix opened issue at 2020-03-23 19:06:

jsmeix commented at 2020-03-23 19:35:

With FIRMWARE_FILES=( 'no' ) I get
for ISO_MAX_SIZE=100

Making backup (using backup method NETFS)
ISO_MAX_SIZE should be at least 400 MiB
ERROR: Backup split chunk size -44 less than 100 MiB (ISO_MAX_SIZE too small?)

for ISO_MAX_SIZE=200

Making backup (using backup method NETFS)
ISO_MAX_SIZE should be at least 400 MiB
ERROR: Backup split chunk size 56 less than 100 MiB (ISO_MAX_SIZE too small?)

for ISO_MAX_SIZE=400

Making backup (using backup method NETFS)
Backup gets split in chunks of 256 MiB (ISO_MAX_SIZE 400 minus recovery system size 144)
Creating tar archive '/tmp/rear.7kzFjbOVdN1umE9/tmp/isofs/backup/backup.tar.gz'

With FIRMWARE_FILES=( 'yes' ) I get
for ISO_MAX_SIZE=400

Making backup (using backup method NETFS)
ERROR: Backup split chunk size 56 less than 100 MiB (ISO_MAX_SIZE too small?)

for ISO_MAX_SIZE=600 I get

Making backup (using backup method NETFS)
Backup gets split in chunks of 256 MiB (ISO_MAX_SIZE 600 minus recovery system size 344)
Creating tar archive '/tmp/rear.LpjHY6OtUSMlhZS/tmp/isofs/backup/backup.tar.gz'

jsmeix commented at 2020-03-24 15:20:

When there are no objections I would like to merge it tomorrow afternoon.

jsmeix commented at 2020-03-25 13:03:

FYI:
Here I kept the current variable naming style (all uppercase) in that script.
The full clean up and overhaul of NETFS 500_make_backup.sh
and 400_restore_backup.sh will happen (as time permits) via
https://github.com/rear/rear/issues/2265


[Export of Github issue for rear/rear.]