db-dump-dt — Claude Code skill: dump a 1C infobase to a DT file
This skill dumps a whole 1C infobase into a single DT file: configuration plus data. Handy for backups and rollback points before an update.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat db-dump-dt does
The /db-dump-dt slash command runs scripts/db-dump-dt.ps1, which drives 1cv8.exe or ibcmd.exe. You get one .dt holding the entire base: data, settings, users. If you only need the configuration, this is the wrong skill — use /db-dump-cf.
Connection details come from .v8-project.json in the project root. Name a database and the skill looks it up by id, alias or name. Leave it out and it matches the current Git branch against databases[].branches, falling back to default. The platform path is the v8path of the matched entry, otherwise the root one. When neither is set, -V8Path is skipped. No .v8-project.json at all? The skill suggests /db-list add.
A file infobase needs just -InfoBasePath; a server one needs -InfoBaseServer and -InfoBaseRef together. Credentials are optional. Extra launch keys go through -AdditionalV8Arguments or -AdditionalIbcmdArguments. The dump reads the whole base, so expect a long run on a large infobase — that is a reason to schedule it outside working hours.
What it helps with
- back up a 1C infobase before an update
- get a rollback point that includes data and user settings
- dump a server infobase into one DT file
- move a database to another machine with its data
- run a dump from the agent without opening the configurator
Example prompts for the agent
- /db-dump-dt dev backup.dt
- /db-dump-dt — dump the default database, name the file after the base and date
- Back up the MyApp_Dev infobase to C:\backup\base.dt
How to install db-dump-dt
1Plugin marketplace
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills/plugin install 1c-skills@cc-1c-skillsThis installs the whole 1c-skills plugin with all its skills
2Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill db-dump-dt -a claude-code3Manually: put the files in place
~/.claude/skills/db-dump-dt/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/db-dump-dt/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill db-dump-dt -a codex2Manually: put the files in place
.agents/skills/db-dump-dt/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/db-dump-dt/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills db-dump-dt2Manually: put the files in place
.github/skills/db-dump-dt/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/db-dump-dtManually: put the files in place
.devin/skills/db-dump-dt/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about db-dump-dt
How do I install db-dump-dt in Claude?
Through the marketplace: run /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then /plugin install 1c-skills@cc-1c-skills. Alternatively, npx skills add Nikolay-Shirokov/cc-1c-skills --skill db-dump-dt -a claude-code.
What does db-dump-dt do?
It dumps a 1C infobase in full to a DT file: configuration along with data, settings and users. That snapshot works as a backup or a rollback point.
How is db-dump-dt different from db-dump-cf?
/db-dump-cf exports the configuration only, with no data. /db-dump-dt captures the whole base, so it fits backups rather than metadata exports.
Source text
SKILL.md · MIT
---
name: db-dump-dt
description: Выгрузка информационной базы 1С в DT-файл (вся база — конфигурация + данные). Используй когда нужно выгрузить информационную базу, выгрузить архив базы, сделать бэкап, выгрузить dt
argument-hint: "[database] [output.dt]"
allowed-tools:
- Bash
- Read
- Glob
- AskUserQuestion
---
# /db-dump-dt — Выгрузка информационной базы в DT-файл
Выгружает информационную базу целиком (конфигурация **+ данные**) в DT-файл — полный снимок ИБ.
> В отличие от `/db-dump-cf` (только конфигурация), `.dt` содержит **всю базу**: данные,
> настройки, пользователей. Это бэкап/точка отката, а не выгрузка метаданных.
## Usage
```
/db-dump-dt [database] [output.dt]
/db-dump-dt dev backup.dt
/db-dump-dt — база по умолчанию, имя файла по базе и дате
```
## Параметры подключения
Прочитай `.v8-project.json` из корня проекта и разреши базу:
1. Если пользователь указал параметры подключения (путь, сервер) — используй напрямую
2. Если указал базу по имени — ищи по id / alias / name в `.v8-project.json`
3. Если не указал — сопоставь текущую ветку Git с `databases[].branches`
4. Если ветка не совпала — используй `default`
Платформа — `v8path` найденной записи базы, иначе корневой `v8path`. Не задан ни там, ни там — `-V8Path` не передавай.
Если файла нет — предложи `/db-list add`.
Если использованная база не зарегистрирована — после выполнения предложи добавить через `/db-list add`.
## Команда
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-dt.ps1" <параметры>
```
### Параметры скрипта
| Параметр | Обязательный | Описание |
|----------|:------------:|----------|
| `-V8Path <путь>` | нет | Каталог bin платформы, или полный путь к `1cv8.exe` / `ibcmd.exe` |
| `-InfoBasePath <путь>` | * | Файловая база |
| `-InfoBaseServer <сервер>` | * | Сервер 1С (для серверной базы) |
| `-InfoBaseRef <имя>` | * | Имя базы на сервере |
| `-UserName <имя>` | нет | Имя пользователя |
| `-Password <пароль>` | нет | Пароль |
| `-OutputFile <путь>` | да | Путь к выходному DT-файлу |
| `-AdditionalV8Arguments <список>` | нет | Доп. аргументы запуска `1cv8.exe` через запятую, напр. `/UseHwLicenses+` |
| `-AdditionalIbcmdArguments <список>` | нет | Доп. аргументы `ibcmd` через запятую, в форме `--ключ=значение` |
> `*` — нужен либо `-InfoBasePath`, либо пара `-InfoBaseServer` + `-InfoBaseRef`
## Примеры
```powershell
# Выгрузка ИБ (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-dt.ps1" -InfoBasePath "C:\Bases\MyDB" -UserName "Admin" -OutputFile "C:\backup\base.dt"
# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-dump-dt.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyApp_Dev" -UserName "Admin" -Password "secret" -OutputFile "base.dt"
```
## Связанные навыки
- `/db-load-dt` — загрузка ИБ из DT (обратная операция)
- `/db-dump-cf` — выгрузка только конфигурации (без данных)
- `/db-create` — создать новую базу (в т.ч. из DT-шаблона)
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills