MCP tool · File manager
archive_files
Compress a path into an archive, or extract an archive, in a hosting account.
archive_files
Description
Compress a path into an archive, or extract an archive, in a hosting account. action=compress needs source (the path to compress) and archive (the archive to create, e.g. /backups/site.zip); action=extract needs archive and destination (the directory to extract into). Both are async — for a large tree DirectAdmin finishes in the background, so a note says the work is queued and NO job id is returned; poll the folder with list_files to confirm the result appears.
Input
| Name | Type | Description |
|---|---|---|
input
required
|
string |
A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
|
action
required
|
enum |
compress a path into an archive, or extract an archive into a directory. Both require write:files and run asynchronously. One of compress, extract.
|
source
|
string |
The path to compress, relative to the account home. Required for compress.
|
archive
|
string |
The archive path: the archive to create for compress, or the archive to extract for extract (e.g. /backups/site.zip).
|
destination
|
string |
The directory to extract into, relative to the account home. Required for extract.
|