Linux command
pct-clone 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Clone
pct clone [template_id] [new_id]
Example
pct clone [template_id] [new_id] --hostname [name]
Example
pct clone [template_id] [new_id] --full
Example
pct clone [template_id] [new_id] --full --storage [storage_name]
Example
pct clone [template_id] [new_id] --description "[note]"
说明
pct clone creates a copy of an existing Proxmox LXC container. This is useful for creating multiple containers from a configured template container or for backup purposes.
参数
- vmid
- The numeric ID of the source container
- newid
- The numeric ID for the cloned container
- --hostname _name_
- Set a custom hostname for the clone
- --full
- Create a full copy instead of linked clone
- --target _node_
- Target node for the clone
- --storage _storage_
- Storage for the clone's disks
FAQ
What is the pct-clone command used for?
pct clone creates a copy of an existing Proxmox LXC container. This is useful for creating multiple containers from a configured template container or for backup purposes.
How do I run a basic pct-clone example?
Run `pct clone [template_id] [new_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does vmid do in pct-clone?
The numeric ID of the source container