Skip to main content
Clone an existing volume

Usage

vastai copy volume <source_id> <dest_id> [options]

Arguments

source
integer
required
id of volume contract being cloned
dest
integer
required
id of volume offer volume is being copied to

Options

-s
number
Size of new volume contract, in GB. Must be greater than or equal to the source volume, and less than or equal to the destination offer. (alias: --size)
-d
boolean
Do not compress volume data before copying. (alias: --disable_compression)

Description

Create a new volume with the given offer, by copying the existing volume. Size defaults to the size of the existing volume, but can be increased if there is available space.

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)