hcirootcopy

This command copies sites from old roots to the currently used root. This includes the version folder. This is for version control.

When a user adds a configuration into version control, a version folder is created in the current site to store the configuration.

Note:  hcirootcopy copies all folders except exec.
hcirootcopy [-f] [-n] [-v] [-N] [-s sitelist] [-l listfile] 
[-p path] [-e encoding] [-u username] [-w password] 
[-E SMATDBFlag,InternalDBFlag,ErrDBFlag] [-D type] [-r] [-c] sourceRoot 
  • -f specifies no query.
  • -n specifies test query.
  • -v specifies verbose mode.
  • -N specifies to not copy the database when copying from root.
  • -s sitelist copies a single site or colon-separated list of sites. For example, site1 or site1:site2:site3
  • -l listfile copies the sites that are listed in listfile.
    listfile should be newline formatted. For example:
    site1
    site2
    site3
  • -p path is the actual path where sitelist is to be saved.

    A $HCIROOT/site symbolic link under the current root is created as a blank placeholder file to the actual path of site path/site after site creation.

    This option is supported only on UNIX.

  • -e encoding is the encoding of the source files. If this option is omitted, then the default value is utf-8.
  • -u username is your organization's end-user user name.
  • -w password is your organization's end-user password.
  • -E SMATDBFlag,InternalDBFlag,ErrDBFlag

    These specify whether the SMAT, internal, or error database is encrypted.

    SMATDBFlag is used for the SMAT database.

    InternalDBFlag is used for the Raima database.

    ErrDBFlag is for error database:

    • 1 indicates encrypted.
    • 0 indicates unencrypted.
    • -1 indicates no change. This is the default. If no flag is specified, then it keeps the same configuration as the previous site.

      For example, -E -1,1,1 indicates that SMAT encryption has no change after migration, and the internal/error databases are encrypted after migration.

  • -D type is the driver type that is used to read/write SMAT. Acceptable values arefile or sqlite.

    If -D type is sqlite, then the sqlite database retains the same behavior as the internal and error databases.

  • -r copies the server/server.ini file.
    Note: This option ignores the security server-related keys.
  • -c updates the encryption method.
  • sourceRoot specifies the source root directory.

Notes

  • Options -s and -l cannot be used simultaneously.
  • Option -p is ignored if the site already exists in the current root.
  • To update the encryption method:
    1. Provide the user name and password.
    2. Upgrade to basic security mode.
    3. Enable CLAPI.
    4. Start the host server.