@mcp-abap-adt/adt-backup
v1.3.0
Published
ADT backup CLI for SAP ABAP objects (recursive package backups and restores)
Readme
@mcp-abap-adt/adt-backup
CLI for recursive ADT backups and restores using @mcp-abap-adt/adt-clients.
Installation
npm install -g @mcp-abap-adt/adt-backupAuth Configuration
The CLI uses @mcp-abap-adt/auth-broker with stores/providers.
Options:
--destination <name>: destination name for AuthBroker stores--auth-root <path>: root folder with auth configs (defaults toAUTH_BROKER_PATHor cwd)--env <file>: use a specific.envfile (via EnvFileSessionStore)
Usage
# Package backup (recursive)
adt-backup backup --package ZPKG_TEST --output backup.yaml --destination TRIAL
# Verify (source-only by default)
adt-backup verify --input backup.yaml --destination TRIAL
# Diff (all objects)
adt-backup diff --input backup.yaml --all --destination TRIAL
# Restore (new objects and updates activate by default)
adt-backup restore --input backup.yaml --mode upsert --destination TRIAL
Use `--no-activate-on-create` or `--no-activate-on-update` to skip activation for the respective phases.
# Extract / patch a single object payload
adt-backup extract --input backup.yaml --object class:ZCL_TEST --out ZCL_TEST.abap
adt-backup patch --input backup.yaml --object class:ZCL_TEST --file ZCL_TEST.abap
# Single object backup (Service Binding)
adt-backup backup --objects serviceBinding:Z_UI_SERVICE --output srvb_backup.yaml --destination TRIALHelp
Get general help or command-specific usage information:
# General help
adt-backup --help
# Command-specific help
adt-backup restore --help
adt-backup diff --helpLogging
Use -v for main stages, -vv for per-object details, and -vvv for ADT/connection debug logs.
Roadmap
See docs/roadmap.yaml for per-object backup/restore status and the plan for remaining types.
Supported Object Types
| Object Type | Backup | Restore | Payload |
|---|---|---|---|
| package | implemented | implemented | metadata-xml |
| domain | implemented | implemented | metadata-xml |
| dataElement | implemented | implemented | metadata-xml |
| structure | implemented | implemented | source |
| table | implemented | implemented | source |
| tableType | implemented | implemented | metadata-xml |
| view | implemented | implemented | source |
| functionGroup | implemented | implemented | metadata-xml |
| functionModule | implemented | implemented | source |
| interface | implemented | implemented | source |
| class | implemented | implemented | source |
| program | implemented | implemented | source |
| transformation | implemented | implemented | source |
| serviceDefinition | implemented | implemented | source |
| serviceBinding | implemented | implemented | metadata-xml |
| metadataExtension | implemented | implemented | source |
| behaviorDefinition | implemented | implemented | source |
| behaviorImplementation | implemented | implemented | source |
| enhancement | implemented | implemented | source |
| unitTest | implemented | implemented | as class |
| cdsUnitTest | implemented | implemented | as class |
Note: Unit tests are stored as classes in backups. When restoring, they are created as test classes in the system.
Note: For
transformation, the subtype (SimpleTransformationforXSLT/VTvsXSLTProgramforXSLT/ST) is detected from the source header (<?sap.transform simple?>).
Note: For
serviceBinding, the publication state (srvb:published) is preserved in the backup and re-applied during restore — published bindings are re-published, unpublished bindings are unpublished.
Smoke Checklist
When your landscape is ready, use docs/SMOKE_CHECKLIST.md for a focused backup/restore/verify checklist.
Changelog
See CHANGELOG.md for a history of changes.
