sysconf config export
Exports a configuration backup file from the file system to the internal HSM, or to an external backup token.This command overwrites the existing configuration file with the same name.
-serialnumber is required if -devicetype is "token" and optional if -devicetype is "hsm".
SO login is required before running this command if -devicetype is "hsm" or "token".
The maximum size of configuration files that can be exported to either an internal or external HSM is 64 KB. The Luna Network HSM 7's Admin/SO partition has a maximum capacity of 384 KB.
NOTE If the configuration content is less than 64 KB, a single file is generated with a name that includes the creation date and time. This will be stored on the backup device. If the configuration content is greater that 64 KB, a single file will also be generated, but it will be too large to save on the backup device. If you are exporting a single service backup, use the lunash:>sysconf config backup -service <service> followed by sysconf config export -devicetype token command to break the content into chunks, each of less than 64 KB and capable of being stored on the backup device. The backup chunk files get the same name, except that each has a sequential number appended. An additional generated file contains a hash of all the chunk files and is used to reassemble the large backup file when you later restore with lunash:> sysconf config restore (using Luna Appliance Software 7.8.5 or newer). Chunking fails if all service backup export is attempted and the file is greater than 64 KB.
User Privileges
Users with the following privileges can perform this command:
>Admin
Syntax
sysconf config export -file <filename> [-devicetype <devicetype>] [-serialnumber <serialnum>] [-force]
| Argument(s) | Shortcut | Description |
|---|---|---|
| -devicetype <devicetype> | -d | Device Type (hsm, token) |
| -file <filename> | -fi | Name to be assigned to the exported configuration backup file. |
| -force | -fo | Force Action (no prompting for confirmation) |
| -serialnumber <serialnum> | -s | Token Serial Number |
Example
lunash:>sysconf config export -file local_host_Config_20170301_1212.tar.gz -devicetype hsm -serialnumber 66331 WARNING !! This command exports the configuration backup file: local_host_Config_20170301_1212.tar.gz to the hsm. It will overwrite the existing configuration file with the same name on the hsm. If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'. > proceed Proceeding... Command Result : 0 (Success)