Discussion:
[Mondo-devel] ISO backup on NFS mount vs NFS backup
Nikolaos Milas
2017-05-06 18:46:06 UTC
Permalink
Hello,

I would like mainly to ask what is considered best practice in backing
up / restoring using NFS.

As an example, I have tried using:

TargetDir1=/mnt/nfs-share/vm-x1/mondo-`hostname`-`date +%Y-%m-%d`
/usr/sbin/mondoarchive -O -i -z -s 4480m -d $TargetDir1 -E "/mnt" -9

which creates ISO files on an NFS shared directory, already mounted at
/mnt/nfs-share.

I also tried:

TargetDir2=vm-x1/mondo-`hostname`-`date +%Y-%m-%d`
/usr/sbin/mondoarchive -O -n "nfs://10.10.10.100:/data/col1/bkup-share"
-d $TargetDir2 -E "/mnt" -9

The two methods in fact store the backup at exactly the same place.

I was expecting the latter method to store a backup as one file, but in
fact it also created a set of ISO files.

Questions:

1. Are both backup methods above considered OK to use?
2. Is it considered sane practice to use the NFS backup method on a
network NFS share which is already mounted on the box?
2. If both methods are considered OK, how could we compare their
advantages/disadvantages?
3. What are the differences in restoring? In general, are (should)
mondoarchive backups be able to be restored with any restore method,
regardless the method they have been taken?

As an example:
Can backups of both methods above be restored as mounted ISOs (virtual
DVDs)?
Can backups of both methods above be restored from a mounted directory
(as NFS mount) with the "Restore from Hard Disk" method?
Can backups of both methods above be restored using network (NFS)
restore method?

Can you please help me understand?

Thank you very much,
Nick
Gattegno, Victor
2017-05-09 09:39:25 UTC
Permalink
Hi Nick,

I would recommend the second method (-n "nfs://10.10.10.100:/data/col1/bkup-share" -d $TargetDir2).
Then, when booting on the first iso (the one created by mondoarchive in your $TargetDir2), that TargetDir2 directory will be NFS automagically mounted to restore the other iso files ; because the NFS mount information are stored in that first iso, in mondo-restore.cfg file (in tmp directory of images/all.tar.gz), you can check it by opening the first iso through 7-Zip (http://www.7-zip.org).

Rgds, Victor

-----Original Message-----
From: Nikolaos Milas [mailto:***@noa.gr]
Sent: samedi 6 mai 2017 20:46
To: Mondo mailing list <mondo-***@lists.sourceforge.net>
Subject: [Mondo-devel] ISO backup on NFS mount vs NFS backup

Hello,

I would like mainly to ask what is considered best practice in backing up / restoring using NFS.

As an example, I have tried using:

TargetDir1=/mnt/nfs-share/vm-x1/mondo-`hostname`-`date +%Y-%m-%d` /usr/sbin/mondoarchive -O -i -z -s 4480m -d $TargetDir1 -E "/mnt" -9

which creates ISO files on an NFS shared directory, already mounted at /mnt/nfs-share.

I also tried:

TargetDir2=vm-x1/mondo-`hostname`-`date +%Y-%m-%d` /usr/sbin/mondoarchive -O -n "nfs://10.10.10.100:/data/col1/bkup-share"
-d $TargetDir2 -E "/mnt" -9

The two methods in fact store the backup at exactly the same place.

I was expecting the latter method to store a backup as one file, but in fact it also created a set of ISO files.

Questions:

1. Are both backup methods above considered OK to use?
2. Is it considered sane practice to use the NFS backup method on a network NFS share which is already mounted on the box?
2. If both methods are considered OK, how could we compare their advantages/disadvantages?
3. What are the differences in restoring? In general, are (should) mondoarchive backups be able to be restored with any restore method, regardless the method they have been taken?

As an example:
Can backups of both methods above be restored as mounted ISOs (virtual DVDs)?
Can backups of both methods above be restored from a mounted directory (as NFS mount) with the "Restore from Hard Disk" method?
Can backups of both methods above be restored using network (NFS) restore method?

Can you please help me understand?

Thank you very much,
Nick



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
Mondo-devel mailing list
Mondo-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Bruno Cornec
2017-05-09 23:12:13 UTC
Permalink
Hello,
Post by Gattegno, Victor
I would recommend the second method (-n "nfs://10.10.10.100:/data/col1/bkup-share" -d $TargetDir2).
Then, when booting on the first iso (the one created by mondoarchive in your $TargetDir2), that TargetDir2 directory will be NFS automagically mounted to restore the other iso files ; because the NFS mount information are stored in that first iso, in mondo-restore.cfg file (in tmp directory of images/all.tar.gz), you can check it by opening the first iso through 7-Zip (http://www.7-zip.org).
Indeed, same recommendation.
Post by Gattegno, Victor
1. Are both backup methods above considered OK to use?
Yes.
Post by Gattegno, Victor
2. Is it considered sane practice to use the NFS backup method on a network NFS share which is already mounted on the box?
Yes.
Post by Gattegno, Victor
2. If both methods are considered OK, how could we compare their advantages/disadvantages?
Using ISO you don't incorporate network info in the media. So at restore time you'll have to give all the params manually.
And network won't be started automatically either you'll have to force it.
Post by Gattegno, Victor
3. What are the differences in restoring? In general, are (should) mondoarchive backups be able to be restored with any restore method, regardless the method they have been taken?
Can backups of both methods above be restored as mounted ISOs (virtual DVDs)?
Yes.
Post by Gattegno, Victor
Can backups of both methods above be restored from a mounted directory (as NFS mount) with the "Restore from Hard Disk" method?
Yes.
Post by Gattegno, Victor
Can backups of both methods above be restored using network (NFS) restore method?
No.

Bruno.
--
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
Open Source Profession, WW Linux Community Lead http://github.com/bcornec
FLOSS projects: http://mondorescue.org http://project-builder.org
Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org
Loading...