-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jake Correnti <[email protected]>
- Loading branch information
1 parent
4bb7efa
commit 18304ce
Showing
2 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
% podman-machine-cp 1 | ||
|
||
## NAME | ||
podman\-machine\-cp - Securely copy contents between the virtual machine | ||
|
||
## SYNOPSIS | ||
**podman machine cp** [*options*] [*machine:*]*src_path* [*machine:*]*dest_path* | ||
|
||
## DESCRIPTION | ||
|
||
Use secure copy (scp) to copy files or directories between the virtual machine | ||
and your host machine. | ||
|
||
`podman machine cp` does not support copying between two virtual machines, | ||
which would require two machines running simultaneously. | ||
|
||
Additionally, `podman machine copy` will automatically do a recursive copy on | ||
files and directories. | ||
|
||
## OPTIONS | ||
|
||
#### **--help** | ||
|
||
Print usage statement. | ||
|
||
#### **--quiet**, **-q** | ||
|
||
Suppress copy status output. | ||
|
||
## EXAMPLES | ||
Copy a file from your host to the running Podman Machine. | ||
``` | ||
$ podman machine cp ~/configuration.txt podman-machine-default:~/configuration.txt | ||
... | ||
Copy Successful | ||
``` | ||
|
||
Copy a file from the running Podman Machine to your host. | ||
``` | ||
$ podman machine cp podman-machine-default:~/logs/log.txt ~/logs/podman-machine-default.txt | ||
... | ||
Copy Successful | ||
``` | ||
|
||
Copy a directory from your host to the running Podman Machine. | ||
``` | ||
$ podman machine cp ~/.config podman-machine-default:~/.config | ||
... | ||
Copy Successful | ||
``` | ||
|
||
Copy a directory from the running Podman Machine to your host. | ||
``` | ||
$ podman machine cp podman-machine-default:~/.config ~/podman-machine-default.config | ||
... | ||
Copy Successful | ||
``` | ||
|
||
## SEE ALSO | ||
**[podman(1)](podman.1.md)**, **[podman-machine(1)](podman-machine.1.md)** | ||
|
||
## HISTORY | ||
February 2025, Originally compiled by Jake Correnti <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters