#296 Issue closed: Backup to ISO - backup of ISOs is too much (should be excluded)

Labels: bug

gdha opened issue at 2013-09-06 15:06:

I see 2 possible issues:

  • ISO_MAX_SIZE: what is safe (sane) max size value?
  • /var/lib/rear/output/*.iso files should be excluded in the backup.
# cat /etc/rear/local.conf
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=iso://backup
ISO_MAX_SIZE=4500
#ISO_MAX_SIZE=650
OUTPUT_URL=nfs://itsbebevlnx01/vol/dr/rear

size of backup.tar.gz is 3587492163

2013-09-06 14:59:16 Including output/ISO/Linux-i386/81_prepare_multiple_iso.sh
2013-09-06 14:59:16 Making additionnal ISO image : rear-witsbebelnx02_01.iso
genisoimage 1.1.8 (Linux)
Scanning .
Scanning ./backup
File ./backup/backup.tar.gz.01 is larger than 4GiB-1.
There is no way do represent this file size. Aborting. See -iso-level 3 or -allow-limited-size options
2013-09-06 14:59:16 ERROR: Could not create ISO image rear-witsbebelnx02_01.iso (with /usr/bin/mkisofs)

 # grep rear-witsbebelnx02_ backup.log
block 1274731: /var/lib/rear/output/rear-witsbebelnx02_05.iso
block 2444872: /var/lib/rear/output/rear-witsbebelnx02_06.iso
block 3615013: /var/lib/rear/output/rear-witsbebelnx02_11.iso
block 4720218: /var/lib/rear/output/rear-witsbebelnx02_04.iso
block 5890359: /var/lib/rear/output/rear-witsbebelnx02_10.iso
block 7060500: /var/lib/rear/output/rear-witsbebelnx02_08.iso
block 8230641: /var/lib/rear/output/rear-witsbebelnx02_02.iso
block 9400782: /var/lib/rear/output/rear-witsbebelnx02_07.iso
block 10570923: /var/lib/rear/output/rear-witsbebelnx02_03.iso
block 11741064: /var/lib/rear/output/rear-witsbebelnx02_13.iso
block 13086502: /var/lib/rear/output/rear-witsbebelnx02_09.iso
block 14256643: /var/lib/rear/output/rear-witsbebelnx02_01.iso
block 15426784: /var/lib/rear/output/rear-witsbebelnx02_12.iso

gdha commented at 2013-09-06 15:13:

as a quick test to resolve previous point 2 I added in the conf/default.conf file:

BACKUP_PROG_EXCLUDE=( '/tmp/*' '/dev/shm/*' $VAR_DIR/output/\* )

It works now (only 1 ISO created). However, the quick and dirty work-around should only happen when ISO backup is involved, but that is for later...

gdha commented at 2013-09-27 13:51:

As above fix is already part of rear-1.15 and I cannot think of any reason why we would include the ISOs in our tar archive I call this issue 'solved' and may close it.
If someone does not agree he/she may reopen it with some comments why...


[Export of Github issue for rear/rear.]