---
title: "cloud copy"
method: POST
path: "/api/v0/commands/rclone/"
tags: ["Instances"]
---

# cloud copy

`POST /api/v0/commands/rclone/`

Starts a cloud copy operation by sending a command to the remote server. The operation can transfer data between an instance and a cloud service.

CLI Usage: `vastai cloud copy <instance_id> <src> <dst> [options]`

## Request body

- object
  - `instance_id` string — ID of the instance.
  - `src` string — Source path for the copy operation.
  - `dst` string — Destination path for the copy operation.
  - `selected` string — ID of the cloud connection.
  - `transfer` string — Type of transfer (e.g., "Instance To Cloud" or "Cloud To Instance").
  - `flags` string[] — Additional flags for the operation.
  - `api_key` string — API key for authentication.

## Response `200`

Cloud copy operation initiated successfully.

- object
  - `success` boolean
  - `msg` string
  - `result_url` string

## Other responses

- `400` — Bad request due to invalid parameters or cloud service.

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
