LXC.COPY(1)

πŸ“¦
version 5.21.6 Β· 3 versions
, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

lxc-copy β€” copy instances within or in between LXD servers πŸ¦‹

ok so real talk, this one's from the LXD - Command line client manual set, bestie, and it does exactly what it says on the tin: it copies instances. Within one LXD server, or between two of them. icon behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

lxc copy [:][/] [[:]] [flags]

🌸 DESCRIPTION 🌸

Description:

Copy instances within or in between LXD servers


πŸŽ€ Transfer modes (--mode) πŸŽ€

okay so this is the part where you pick how the data actually travels, and there are three vibes:

  • pull β€” Target server pulls the data from the source server (source must listen on network)
  • push β€” Source server pushes the data to the target server (target must listen on network)
  • relay β€” The CLI connects to both source and server and proxies the data (both source and target must listen on network)

The pull transfer mode is the default as it is compatible with all LXD versions. πŸ‘‘ lowkey the safe choice, no cap.


πŸ’… OPTIONS πŸ’…

  • --allow-inconsistent[=false] β€” Ignore copy errors for volatile files πŸ™ˆ
  • -c, --config=[] β€” Config key/value to apply to the new instance
  • -d, --device=[] β€” New key/value to apply to a specific device
  • -e, --ephemeral[=false] β€” Ephemeral instance ✨
  • --instance-only[=false] β€” Copy the instance without its snapshots
  • --mode="pull" β€” Transfer mode. One of pull, push or relay
  • --no-profiles[=false] β€” Create the instance with no profiles applied
  • -p, --profile=[] β€” Profile to apply to the new instance
  • --refresh[=false] β€” Perform an incremental copy πŸ”₯
  • --stateless[=false] β€” Copy a stateful instance stateless
  • -s, --storage="" β€” Storage pool name
  • --target="" β€” Cluster member name
  • --target-project="" β€” Copy to a project different from the source

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these ones come from the parent command, so you get them for free, bestie 🫢

  • --debug[=false] β€” Show all debug messages
  • --force-local[=false] β€” Force using the local unix socket
  • -h, --help[=false] β€” Print help
  • --project="" β€” Override the source project
  • -q, --quiet[=false] β€” Don't show progress information
  • --sub-commands[=false] β€” Use with help or --help to view sub-commands
  • -v, --verbose[=false] β€” Show all information messages
  • --version[=false] β€” Print version number

πŸ¦‹ SEE ALSO πŸ¦‹

go read that one too, iykyk πŸ’œ


πŸ“ HISTORY πŸ“

22-Aug-2026 β€” Auto generated by spf13/cobra


ngl bestie, this whole page is Auto generated by spf13/cobra β€” no human hand-wrote this one, the robots did it πŸ€–πŸ’€

and that's the whole thing! Auto generated by spf13/cobra, Aug 2026, straight from the LXD - Command line client(1) manual. mwah πŸ’‹ slay, go copy some instances πŸŽ€

πŸ“¦ where this page comes from