hcisiteinit
This command creates a new site.
hcisiteinit [-c site] [-s] [-i] [-p path] [-E SMATDBFlag]
[-D type] [-K SMATDBKey] [-I InternalDBFlag] [-M InternalDBKey] [-R ErrDBFlag]
[-N ErrDBKey] newsite
-c site
is the site to be cloned bynewsite
.- If
-c site
is used and no flags are used, then database encryption stays consistent with the configuration in the template site. - If
-c site
is not used and no flags are used, then the databases are encrypted by default and use the default key.
- If
-s
runshcisitectl -S
after site creation.-i
ignores restrictions on the site name.-p path
is the target path wherenewsite
is saved.A symbolic link $HCIROOT/newsite is created linking to <path>/newsite after site creation. This is availabale only in NTFS on Windows. The target path must be R/W to the user.
-E SMATDBFlag
encrypts/decrypts SMAT.1
indicates encrypted. This is the default.0
indicates unencrypted.
-D type
is the driver type that is used to read/write SMAT. Acceptable values are file and sqlite. When-D type
issqlite
, the sqlite database retains the same behavior as the internal and error databases.-K SMATDBKey
is the encryption key of the SMAT database.-I InternalDBFlag
is the internal database. This flag has a higher priority than the encryption setting in the template site specified by-c site
.1
indicates encrypted. This is the default.0
indicates unencrypted.
-M InternalDBKey
is the encryption key of the internal database.-R ErrDBFlag
is the error database. This flag has a higher priority than the encryption setting in the template site specified by-c site
.1
indicates encrypted. This is the default.0
indicates unencrypted.
-N ErrDBKey
is the encryption key of the error database.newsite
is the name of the new site to create. This must not currently exist.