Save Command
The dicfg save command saves DiveLine configuration files from the specified DiveLine dataroot. Usage of the save command is described in the following table.
| Command | Description |
|---|---|
| dicfg save | |
|
-remote <username>:<password>@<server:port>
|
Specifies the DiveLine server to connect to and the user name and password for logon. |
|
-dataroot <path to diveline dataroot>
|
Specifies the dataroot from which the DiveLine configuration files should be exported and saved. |
|
<destination directory>
|
Required. Specifies the destination directory for the saved flat configuration files. |
NOTE: Specify either a dataroot on the local machine or a remote DiveLine connection, but not both.
Sample save command:
dicfg -remote admin:admin@localhost:6403 save f:\di\solution64\dl-dataroot\flatfiles
This Save command creates three files in the specified directory:
- DiveLine_ACL.cfg
- DiveLine_Group.cfg
- DiveLine_Users.cfg
Each file is tab delimited with column headings, as described in Flat Configuration File Format. Multiple values in a column are delimited by commas.
For both the save and merge commands, if you do not specify the -dataroot argument, dicfg checks the registry for which DiveLine dataroot to use.
On Windows, dicfg checks for the following registry value:
If this value does not exist in the registry, the fallback default dataroot value is:
On UNIX, if the dataroot argument is not provided, dicfg checks for the following OS environment variable:
For example, you may have specified:
export DIDATA_DIR=/di/solution/dl-dataroot
To see the value of this environment variable, type:
echo $DIDATA_DIR
If this environment variable is not present, the default Linux dataroot is:
See also:
- Command Line Utility dicfg.exe
- Save Command
- Flat Configuration File Format
- Merge Command
- Restore Command
- Notes on ACL Updates with Merge and Restore