Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lots of empty ISOs are made #321

Closed
sirtow opened this issue Oct 29, 2013 · 5 comments
Closed

lots of empty ISOs are made #321

sirtow opened this issue Oct 29, 2013 · 5 comments
Assignees

Comments

@sirtow
Copy link

sirtow commented Oct 29, 2013

Hi,
Running rear -vdD mkbackup.
I get the following

Preparing 9 ISO images ...
Preparing 9 ISO images for /mnt/Pluto_Rescue/pluto/backup.tar.gz.??...
AUTHORS COPYING Makefile README doc etc packaging usr var
/opt/rear
Making additionnal ISO image : rear-pluto_01.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_01.iso (372K)
Making additionnal ISO image : rear-pluto_02.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_02.iso (372K)
Making additionnal ISO image : rear-pluto_03.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_03.iso (372K)
Making additionnal ISO image : rear-pluto_04.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_04.iso (372K)
Making additionnal ISO image : rear-pluto_05.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_05.iso (372K)
Making additionnal ISO image : rear-pluto_06.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_06.iso (372K)
Making additionnal ISO image : rear-pluto_07.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_07.iso (372K)
Making additionnal ISO image : rear-pluto_08.iso
Wrote ISO image: /opt/rear/var/lib/rear/output/rear-pluto_08.iso (372K)

The output/ISO/Linux-i386/81_prepare_multiple_iso.sh has the following :

# in mkrescue workflow there is no need to check the backups made, otherwise,
# NB_ISOS=(ls . | wc -l) [side effect is that lots of empty ISOs are made]
[[ "$WORKFLOW" = "mkrescue" ]] && return

Is it a bug as its happening during mkbackup?

@ghost ghost assigned gdha Oct 30, 2013
@gdha
Copy link
Member

gdha commented Oct 30, 2013

Can you paste your /etc/rear/local.conf file please?

I have a working configuration with:

OUTPUT=ISO
## ISO backup included
BACKUP=NETFS
BACKUP_URL=iso://backup
ISO_MAX_SIZE=4500
###ISO_MAX_SIZE=650

@sirtow
Copy link
Author

sirtow commented Nov 1, 2013

Sorry for late response....Thsi is my local.conf:


OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=file:///mnt/Pluto_Rescue
#BACKUP_URL=iso://backup
ISO_MAX_SIZE=4500


EXCLUDE_MD=(${EXCLUDE_MD[@]} /dev/md0)
EXCLUDE_MOUNTPOINTS=( ${EXCLUDE_MOUNTPOINTS[@]} /mnt/vol1 /mnt/mirror )
COPY_AS_IS_EXCLUDE=( ${COPY_AS_IS_EXCLUDE[@]} /opt/mkcdrec /opt/ut/settings/torrents )

@sirtow
Copy link
Author

sirtow commented Nov 3, 2013

Here whats happening now :

pluto rear # cat etc/rear/local.conf
# Create Relax-and-Recover rescue media as ISO image

OUTPUT=ISO
BACKUP=NETFS
#BACKUP_URL=file:///mnt/Pluto_Rescue

BACKUP_URL=iso://backup
ISO_MAX_SIZE=4500



EXCLUDE_MD=(${EXCLUDE_MD[@]} /dev/md0)
EXCLUDE_MOUNTPOINTS=( ${EXCLUDE_MOUNTPOINTS[@]} /mnt/vol1 /mnt/mirror )
COPY_AS_IS_EXCLUDE=( ${COPY_AS_IS_EXCLUDE[@]} /opt/mkcdrec /opt/ut/settings/torrents )

pluto rear # ./usr/sbin/rear -vDd mkbackup
Relax-and-Recover 1.15 / Git
Using log file: /opt/rear/var/log/rear/rear-pluto.log
ERROR: The OUTPUT_URL scheme can't be iso. You must choose a correct location !
Aborting due to an error, check /opt/rear/var/log/rear/rear-pluto.log for details
You should also rm -Rf /tmp/rear.5bynFUwU0HqVFxK
Terminated
pluto rear 

@gdha
Copy link
Member

gdha commented Nov 4, 2013

You need to define an OUTPUT_URL location which is different then the BACKUP_URL location. If you omit, the OUTPUT_URL definition then it is the same as the BACKUP_URL location and in your case it becomes OUTPUT_URL=iso://backup. Therefore, you got the error message above.
Please use something like OUTPUT_URL=nfs://server/location/ and keep the BACKUP_URL=iso://backup setting.
My local.conf copy/paste was not complete - sorry about that.

@sirtow
Copy link
Author

sirtow commented Nov 5, 2013

Yep that worked :) the backup completed without any problem and iso created .Thank you very much!!!
The final local.conf looks like :


OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=iso://backup
ISO_MAX_SIZE=4500

OUTPUT_URL=file:///mnt/Pluto_Rescue/

@sirtow sirtow closed this as completed Nov 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants