Request an invite
Docs menu

osmates vm copy

Copy a file or a folder into or out of a machine's guest.

Usage
osmates vm copy <source> <destination> [--owner <owner>]

Name the guest side as <machine>:<absolute path>, as scp does: osmates vm copy notes.txt dev:/home/me/ or osmates vm copy dev:/var/log . In Windows the path starts with its drive: win:C:\Users\Public\ . A destination that ends with a slash, or is a folder, receives the item under its own name. Folders move as tar streams. Files are checked by their SHA-256 at the other end. What is copied into a Linux or macOS guest belongs to root unless --owner names another account. What arrives on the Mac is quarantined, as a download is: macOS checks an app or a script from it before it first opens, and xattr -dr com.apple.quarantine <path> removes that, after chmod -R u+rwX <path> where items are read-only.

Arguments

<source>Required

What to copy: a local path, or <machine>:<path>.

<destination>Required

Where to copy it: a local path or folder, or <machine>:<path>.

--owner <owner>

The guest account that owns what is copied into the guest.

Report a problem with this page