## OpenCA - CA Command
## (c) 1998-2001 by OpenCA Group
##
##   File Name: nodeEnrollConfig
##     Verison: $Revision: 1.3 $
##       Brief: exports Configuration
## Description: exports the configuration to a removable media

require "$common_libs/export-import.lib";

sub cmdNodeEnrollConfig {

	print startLogPage ( gettext("Exporting the configuration to a lower level of the hierarchy ...") );

	my $tmp = createStructure ();
	eximEnrollConfiguration ( $tmp );
	eximEnrollCAs           ( $tmp );
	eximEnrollCommit        ( $tmp );
	eximIOEnroll            ( $tmp );
	removeDirectory         ( $tmp );

	closePage ();

}

1;
