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

rear backup that makes one ISO? #646

Closed
multipathmaster opened this issue Aug 24, 2015 · 4 comments
Closed

rear backup that makes one ISO? #646

multipathmaster opened this issue Aug 24, 2015 · 4 comments
Assignees

Comments

@multipathmaster
Copy link

Hello, MultipathMaster here,

We have a certain set of systems within our environment that have a horrible network connection (a t-1), which is only 1.5 megabit a second, and so we were wondering if there was a way to actually have rear (when mkbackup or mkrescue is issued) make one ISO for an entire system?

I understand that this would mean that the ISO would be 10 gigs or largers.

I really wanted to be able to do something like this BACKUP=ISO as well as the OUTPUT=ISO, so that it will just be one big ISO.

An easy way would be --> dd if=/dev/device | gzip > /path/to/location/backup.gz

then to include that at the %post section of the image build have it do this -->

cp /path/to/location/backup.gz $INSTALL_ROOT/

and this backup.gz will then be included within the ISO image itself.

Once this is accomplished, the way to restore would simply be -->
zcat/cat backup.gz | dd of=/dev/device

However that being said, I would like an answer as to whether or not rear has this option pre-built into him natively (i.e. make a giant ISO of the system, similar to how Mondo works).

Just a question. Thanks -- MultipathMaster

@gdha gdha self-assigned this Aug 25, 2015
@gdha
Copy link
Member

gdha commented Aug 25, 2015

@multipathmaster see the man page on how to create an ISO with archive included. Feedback is of course more then welcome. It should make multiple ISO images.

@multipathmaster
Copy link
Author

GDHA,

Again you have been more than helpful...

BACKUP=NETFS
OUTPUT_URL=file:///opt/hd/sa/mondo
BACKUP_URL=iso://backup
OUTPUT=ISO
ISO_DIR=/opt/hd/sa/mondo
ISO_PREFIX="rear-$HOSTNAME.dc9098-$(date "+%y%m%d.%H%M%S")"

Here is what I have to begin building the ISO files and the tar.gz archive, however quick question, how can I tell rear to use a different tmp directory than /tmp. Running out of space, but in /opt/hd/sa/mondo we have more than enough space to write the ISO and the tarball as well as using this space for the tmp (rear working dir), how do I point rear to this dir to take advantage of the extra space?

@gdha
Copy link
Member

gdha commented Aug 25, 2015

@multipathmaster the conf/default.conf says:

# the TMPDIR influences the mktemp command to define an alternative basedir instead of /tmp
# useful in case he /tmp is not large enough to contain ISO images and/or backup archives
# be careful the directory MUST exist otherwise you will get an error by mktemp
TMPDIR=""
export TMPDIR    # the export is required so that mktemp can pickup the variable

Rule of dumb, always check the default.conf file first ;-)

@multipathmaster
Copy link
Author

GDHA, you are the man! We are working now! We will test, but you can close this support case out, this gets us across the finish line for sure for this particular project. Thanks again for your time.

@gdha gdha closed this as completed Aug 27, 2015
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