exo compute instance scp

Description

This command executes the scp(1) command to send or receive files to/from the specified Compute instance. TARGET (or SOURCE, depending on the direction of the transfer) must contain the “{}” marker which will be interpolated at run time with the actual Compute instance IP address, similar to xargs(1). This marker can be replaced by another string via the –replace-str|-i flag.

Example:

exo compute instance scp my-instance hello-world.txt {}:
exo compute instance scp -i%% my-instance %%:/etc/motd .
exo compute instance scp INSTANCE-NAME|ID SOURCE TARGET [flags]

Options

OptionDescription
--help, -hhelp for scp
--ipv6, -6
--login, -l
--print-commandprint the SCP command that would be executed instead of executing it
--recursive, -rrecursively copy entire directories
--replace-str, -istring to replace with the actual Compute instance information (i.e. username@IP-ADDRESS)
--scp-options, -oadditional options to pass to the scp(1) command
--zone, -zinstance zone

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands