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
Option | Description |
---|---|
--help, -h | help for scp |
--ipv6, -6 | |
--login, -l | |
--print-command | print the SCP command that would be executed instead of executing it |
--recursive, -r | recursively copy entire directories |
--replace-str, -i | string to replace with the actual Compute instance information (i.e. username@IP-ADDRESS) |
--scp-options, -o | additional options to pass to the scp(1) command |
--zone, -z | instance zone |
Options inherited from parent commands
Option | Description |
---|---|
--config, -C | Specify an alternate config file [env EXOSCALE_CONFIG] |
--output-format, -O | Output format (table|json|text), see "exo output –help" for more information |
--output-template | Template to use if output format is "text" |
--quiet, -Q | Quiet mode (disable non-essential command output) |
--use-account, -A | Account to use in config file [env EXOSCALE_ACCOUNT] |
Related Commands
- instance - Compute instances management