[Freeipa-devel] [PATCH 7 of 8] Backup system state in ipa-server-install
Rob Crittenden
rcritten at redhat.com
Fri Jan 11 20:21:04 UTC 2008
Mark McLoughlin wrote:
> # HG changeset patch
> # User Mark McLoughlin <markmc at redhat.com>
> # Date 1200049593 0
> # Node ID 8640eee04855769ce8d0592e0fd7580e63d81dcf
> # Parent dbe13997b7a29237a134d0c23f6e34503e91898d
> Backup system state in ipa-server-install
>
> This patch adds a sysrestore module which allows ipa-server-install
> code to backup any system state so that it can be restored again
> with e.g. ipa-server-install --uninstall.
>
> The idea is that any files ipa-server-install modifies gets backed
> up to /var/cache/ipa/sysrestore/ while any "meta" state, like
> whether a service is enabled with chkconfig, is saved to
> /var/cache/ipa/sysrestore.state.
>
> Signed-off-by: Mark McLoughlin <markmc at redhat.com>
>
> --- a/ipa-server/Makefile.am Fri Jan 11 10:36:25 2008 +0000
> +++ b/ipa-server/Makefile.am Fri Jan 11 11:06:33 2008 +0000
> @@ -12,6 +12,13 @@ SUBDIRS = \
> ipa-slapi-plugins \
> xmlrpc-server \
> $(NULL)
> +
> +install-exec-local:
> + mkdir -p $(DESTDIR)$(localstatedir)/cache/ipa/sysrestore
> +
> +uninstall-local:
> + rmdir $(DESTDIR)$(localstatedir)/cache/watercooler/sys
> + rmdir $(DESTDIR)$(localstatedir)/cache/watercooler
Is this supposed to be ipa?
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080111/895602f4/attachment.bin>
More information about the Freeipa-devel
mailing list