Home >

LunaSH Command Reference Guide > LunaSH Commands > sysconf > sysconf config restore

sysconf config restore

Restore configuration of the selected services from a backup file. The service(s) must be stopped before restoring their configuration. This command does not restore the HSM and Partition configurations.

You must reboot the appliance for the changes to take effect.

Please check the new configurations BEFORE rebooting or restarting the services.

It automatically creates a backup file of the current configurations before restoring a previous configuration. You can restore the previous configurations if the new settings are not acceptable.

Syntax

sysconf config restore -file <filename> -service <service> [-force]

Parameter Shortcut      Description         
-file    -fi File name
-force     -fo Force the action without prompting.  
-service -s

The service name.

Valid values: network,ssh,NTLS,syslog,ntp,snmp,users,system,all

Example

[myluna] lunash:>sysconf config restore -file SA76_test_Config_20111104_1018.tar.gz -service users  
WARNING !!  This command restores the configuration backup file: SA76_test_Config_20111104_1018.tar.gz. 
It first creates a backup of the current configuration before restoring: SA76_test_Config_20111104_1018.tar.gz.  
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.  
> proceed  
Proceeding...  
Created configuration backup file: SA76_test_Config_20111104_1020.tar.gz  
Restore the users configuration: Succeeded.  
You must either reboot the appliance or restart the service(s) for the changes to take effect.  
Please check the new configurations BEFORE rebooting or restarting the services.  
You can restore the previous configurations if the new settings are not acceptable.
Command Result : 0 (Success)