7.4.7. Import data from the export file (* .dt) to the infobase
ibcmd.exe infobase restore -u ibuser -P 123 --dbms=mssqlserver --db-server=dbServerName --db-user=dbUser --db-pwd=dbUserPassword --db-name=docs-db --data="D:\ss-data\cs-data" --db-name=dbName .\1cv8.dt
Command execution result:
[ INFO] Infobase import... [ INFO] Infobase imported
Note that a DT file in this command is specified without any named parameter. It is specified as the last value in the command line.
If you need to import a DT file to the infobase that is currently being serviced by the standalone server, execute one of the following commands:
ibcmd.exe --pid=ProcessID infobase restore .\1cv8.dt ibcmd.exe --remote=ssh://Server1C:8282 infobase restore .\1cv8.dt
These commands perform the same action but they have different location of the standalone server instance that restores the infobase from a DT file:
- The --pid parameter is specified. The standalone server runs on the same computer as the ibcmd utility. ProcessID indicates the operating system process number of the running standalone server.
- The --remote parameter is specified. The standalone server and the ibcmd utility run on different computers. ssh://Server1C:8282 indicates an address of the configured standalone server SSH gateway that imports the infobase.
See also:
- Standalone server management (see article Standalone server management).
- Configuring access to a standalone server over SSH protocol (see article ssh).