Skip to main content
Copy files/folders to and from cloud providers

Usage

Options

string
path to source of object to copy
string
default:"/workspace"
path to target of copy operation
string
id of the instance
string
id of cloud connection on your account (get from calling ‘vastai show connections’)
string
default:"Instance to Cloud"
type of transfer, possible options include Instance To Cloud and Cloud To Instance
boolean
show what would have been transferred
boolean
skip based on size only, not mod-time or checksum
boolean
skip all files that exist on destination
boolean
skip files that are newer on the destination
boolean
delete files on dest excluded from transfer
string
try to schedule a command to run hourly, daily, or monthly. Valid values are HOURLY, DAILY, WEEKLY For ex. --schedule DAILY Choices: HOURLY, DAILY, WEEKLY
string
Start date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is now. (optional)
string
End date/time in format ‘YYYY-MM-DD HH:MM:SS PM’ (UTC). Default is contract’s end. (optional)
integer
default:"0"
Day of week you want scheduled job to run on (0-6, where 0=Sunday) or ”*”. Default will be 0. For ex. --day 0
integer
default:"0"
Hour of day you want scheduled job to run on (0-23) or ”*” (UTC). Default will be 0. For ex. --hour 16

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. The format for both src and dst is [instance_id:]path. You can find more information about the cloud copy operation here: https://vast.ai/docs/gpu-instances/cloud-sync

Examples

Global Options

The following options are available for all commands: