sysconf config restore

Restore configuration of the selected services from a backup file. This command automatically creates a backup file of the current configurations before restoring a previous configuration. You can restore the previous configurations from this backup if the new settings are not acceptable.

If you store your appliance configuration on an HSM (using sysconf config export) you must first use the command sysconf config import to import the configuration file from the HSM to the appliance file system before using this command.

The service(s) must be stopped before restoring their configuration.

You must reboot the appliance for the changes to take effect. Please check the new configurations before rebooting or restarting the services.

NOTE   This command does not restore the HSM and Partition configurations (see hsm restore and partition restore for more information).

User Privileges

Users with the following privileges can perform this command:

>Admin

Syntax

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

Argument(s) Shortcut Description
-file <filename> -fi File name
-force -fo Force the action without prompting.
-service <service> -s

The service name.

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

Example

lunash:>sysconf config restore -file local_host_Config_20170301_1212.tar.gz -service ntls


WARNING !! This command restores the configuration from the backup file: local_host_Config_20170301_1212.tar.gz.
It first creates a backup of the current configuration before restoring: local_host_Config_20170301_1212.tar.gz.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.

> proceed
Proceeding...


Created configuration backup file: local_host_Config_20170301_1222.tar.gz


Restore the ntls 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)