Copy directories between instances and/or localDocumentation Index
Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Arguments
Source location for copy operation (supports multiple formats)
Target location for copy operation (supports multiple formats)
Options
Location of ssh private key (alias:
--identity)Description
Copies a directory from a source location to a target location. Each of source and destination directories can be either local or remote, subject to appropriate read and write permissions required to carry out the action. Supported location formats:- [instance_id:]path (legacy format, still supported)
- C.instance_id:path (container copy format)
- cloud_service:path (cloud service format)
- cloud_service.cloud_service_id:path (cloud service with ID)
- local:path (explicit local path)
- V.volume_id:path (volume copy, see restrictions)
Examples
Global Options
The following options are available for all commands:| Option | Description |
|---|---|
--url URL | Server REST API URL |
--retry N | Retry limit |
--raw | Output machine-readable JSON |
--explain | Verbose explanation of API calls |
--api-key KEY | API key (defaults to ~/.config/vastai/vast_api_key) |