#419 Issue closed: Redundant ISO on local hard disk

Labels: enhancement, support / question, fixed / solved / done

ctwombly opened issue at 2014-05-30 17:53:

Here's a sample of my configs:

local.conf

OUTPUT=ISO
BACKUP=NETFS
OUTPUT_URL=file:///test
BACKUP_URL=iso:///backup
ISO_MAX_SIZE=4400

default.conf:

/* all default values with the following exception */
ISO_DIR=/temp

The issue I'm reporting is that when you define OUTPUT_URL to a local directory - for example /test - rear creates an ISO file at /test but also creates a subdirectory called localhost. Within /test/localhost is the same ISO file found at /test along with the logfile and text documents. This behavior is correct based on the current rear settings but could cause issues if the ISOs are large and there is limited disk space.

What I'm trying to achieve is create an ISO backup on the local disk and then manually export this later, but eliminate the redundant ISO created on the local disk. It appears that ISO_DIR should be able to be defined as a blank value - and thus ignored by rear - so that the only local backup is created at the OUTPUT_URL defined location.

I have also tried to define OUTPUT_URL as nfs and point it to an unknown/unreachable IP address, hoping that rear would create the local copy based on the ISO_DIR declaration and then simply ignore the external copy since it can't route to that IP address, but unfortunately this causes rear to fault and terminate.

gdha commented at 2014-09-15 07:57:

@ctwombly what we could do it when OUTPUT_URL=file:///dir is move the ISO image from /var/lib/rear/output/rear-$(hostname).iso to /dir instead of copy it (this way we only have 1 copy instead of 2 copies on the local system)? Would that work?

gdha commented at 2014-11-05 12:07:

There has a fix been added to rear - pull request #501

ctwombly commented at 2014-11-05 15:08:

Sorry I overlooked the previous email in September. Your proposed solution
sounds easy and effective. Thanks for your time and efforts!

Chris Twombly
On Nov 5, 2014 7:08 AM, "gdha" notifications@github.com wrote:

There has a fix been added to rear - pull request #501
https://github.com/rear/rear/pull/501


Reply to this email directly or view it on GitHub
https://github.com/rear/rear/issues/419#issuecomment-61797891.

gdha commented at 2015-02-16 15:59:

added to the release notes so we can close this issu


[Export of Github issue for rear/rear.]