cURL
curl --request PUT \ --url https://console.vast.ai/api/v0/commands/copy_direct/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "src_path": "<string>", "dst_path": "<string>", "src_id": "<string>", "dst_id": "<string>" } '
{ "success": true, "msg": "Remote to Remote copy initiated - check instance status bar for progress updates (~30 seconds delayed)." }
Initiate a remote copy operation to transfer data from one instance to another or between an instance and the local machine.
CLI Usage: vastai copy <src_id> <dst_id> <src_path> <dst_path>
vastai copy <src_id> <dst_id> <src_path> <dst_path>
API key must be provided in the Authorization header
Path of the source data.
Path of the destination data.
ID of the source instance.
ID of the destination instance.
Remote copy initiated successfully.
true
"Remote to Remote copy initiated - check instance status bar for progress updates (~30 seconds delayed)."