https://fedorahosted.org/freeipa/ticket/4823 -- David Kupka
From f04a311b98c6db0bd19486e21dbe07addf2c0f87 Mon Sep 17 00:00:00 2001 From: David Kupka <dku...@redhat.com> Date: Sun, 11 Jan 2015 18:45:11 -0500 Subject: [PATCH] Abort full backup restoration on not matching host.
Full backup cannot be restored on other host than the one where it was created. https://fedorahosted.org/freeipa/ticket/4823 --- ipaserver/install/ipa_restore.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py index 097703938a7ba3820f4acae2148760146464fa08..d9a0383678004ecd04d621a4ce3fc1319e8d9ac9 100644 --- a/ipaserver/install/ipa_restore.py +++ b/ipaserver/install/ipa_restore.py @@ -251,6 +251,9 @@ class Restore(admintool.AdminTool): if self.backup_host != api.env.host: self.log.warning('Host name %s does not match backup name %s' % (api.env.host, self.backup_host)) + if self.backup_type == 'FULL': + self.log.error('Cannot restore full backup on a different host.') + raise admintool.ScriptError("Aborted") if (not options.unattended and not user_input("Continue to restore?", False)): raise admintool.ScriptError("Aborted") -- 2.1.0
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel