rumpty copy (alias cp) moves files between your machine and a VM. One of the two paths must be remote, written with the vm:path syntax. The CLI uses rsync when it is available on both ends and falls back to scp when it is not.
Quick start
Upload a file:
rumpty copy ./app.tar.gz my-vm:/tmp/Download a file:
rumpty cp my-vm:/var/log/app.log ./logs/Upload a folder (recursive automatically):
rumpty cp ./dist my-vm:/srv/app/Download a folder (add -r when the transfer runs over scp):
rumpty cp -r my-vm:/var/log ./logs/Requirements
- A signed-in session (
rumpty login) or theRUMPTY_API_KEYenvironment variable. See Login & Logout. - A workspace: the
--wsflag or$RUMPTY_WORKSPACE. The examples without--wsassumeRUMPTY_WORKSPACEis set.
Flags
| Flag | Description |
|---|---|
-i, --identity | Private key for VM login |
-r, --recursive | Copy directories recursively (required for remote directories when using scp) |
--user | Guest username on the VM |
--ssh-debug | Enable verbose OpenSSH debugging |
How the transfer runs
rsyncis used when it is available locally and on the VM; otherwise the CLI falls back toscp.- Uploading a local directory always copies it recursively.
- Downloading a remote directory needs
-rwhen the transfer runs over scp.
If a transfer fails, run it again with --ssh-debug to see the underlying OpenSSH output.