export_container_to_file
Export a container's filesystem directly to a tar archive on the server host, with support for large containers and optional overwrite of existing files.
Instructions
Export a container's filesystem as a tar archive written to a file on the server host.
Streams straight to disk (no in-band byte cap), so it handles large containers. The file is
written by the server's user; ~ is expanded and an existing file is refused unless overwrite=True.
args: id_or_name - The container id or name dest_path - Destination path on the server host for the tarball overwrite - Replace dest_path if it already exists (default False) returns: dict - {"path": , "bytes_written": int}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_path | Yes | ||
| overwrite | No | ||
| id_or_name | Yes |