podman-machine-cp(1)

πŸ“¦ version 6.1.4, in arch rolling, fedora 43, fedora 44, ubuntu resolute

πŸ’– podman-machine-cp(1) πŸ’–

okay bestie, welcome to the General Commands Manual entry for podman-machine-cp β€” the little scp-flavored glow-up that lets you yeet files back and forth between your host and your Podman virtual machine. it's giving ✨file transfer✨ but make it secure.


🌸 NAME 🌸

podman-machine-cp β€” securely copy contents between the host and the virtual machine


πŸ¦‹ SYNOPSIS πŸ¦‹

podman machine cp [options] src_path dest_path

✨ DESCRIPTION ✨

so basically, this uses secure copy (scp) to move files or directories back and forth between the virtual machine and your host machine. that's the whole vibe. 🫢

lowkey important: podman machine cp does not support copying between two virtual machines. like, not even a little. that would need two machines running at the same time, and we simply are not doing that. πŸ™ˆ

also highkey convenient: podman machine cp will automatically do a recursive copy of files and directories. you don't gotta ask twice, it just does it. periodt. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --help β€” print the usage statement. your classic "help me bestie" move.
  • --quiet, -q β€” suppress copy status output. for when you want it silent, mysterious, main character energy. 🀫

🌈 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-machine(1)


🧚 HISTORY 🧚

February 2025, originally compiled by Jake Correnti jcorrent@redhat.com ⟨mailto:jcorrent@redhat.com⟩


ngl that's the whole page bestie. go copy something cute. πŸ’–

okay so that's a wrap on the podman-machine-cp(1) page β€” sending you off with all the love, from the General Commands Manual era, February 2025, compiled by Jake Correnti jcorrent@redhat.com ⟨mailto:jcorrent@redhat.com⟩. slay, stay safe, and don't forget the colon in machine:path. iykyk 🌟

πŸ“¦ where this page comes from