pack
Creates resumable tar archives from a P5 host source directory, records every file in the catalogue, and previews the plan before confirmation.
Instructions
Packs a source directory on the P5 host into tar files (D2D2T) and records every file in the catalogue. Without confirm: only the plan (walks the source once at low I/O priority; tar names, sizes, file counts, time estimate). With confirm:true: writes the tars (tar --sort=inode, resumable per tar via .done markers, sha256 per tar, plain-text listing next to each tar) and the rows in one transaction per tar. Long-running (hours for TB-sized sets); does not hold the nsdchat lock.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"set": "<set>"
},
"name": "pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max tar size, e.g. 50G (default 50G) | |
| set | Yes | Set name (letters, digits, . _ -) | |
| into | No | Pack root (default config packRoot); tars go to <root>/<set>/ | |
| detach | No | Run the whole plan as one self-contained runner on the P5 host (setsid nohup, resumable per tar, log in the tar dir); returns at once, the client may disconnect; follow with pack_status | |
| replan | No | Ignore a stored plan of an interrupted run | |
| source | Yes | Absolute source directory on the P5 host | |
| confirm | No | Must be true to actually run; without it only the plan/commands are returned |