Clone your Linode's existing disks, configuration profiles, and interfaces to another Linode on your account. Consider these points before cloning a Linode:
-
Cloning to a new Linode incurs a charge on your account.
-
If cloning to an existing Linode, any actions currently running or queued need to finish before you can clone to it.
-
You can run up to five concurrent clone operations, from a single Linode. If you exceed this limit, you'll receive an HTTP 400 error.
-
For Linodes using Linode interfaces, the region where you want the clone to live also needs to support Linode interfaces. You can run the GET a region operation to see what's supported. Your user's account settings also need ot be set to allow creation of Linodes with Linode interfaces.
-
Any tags you have set on your source Linode will be cloned to the target Linode.
-
If your source Linode is protected with a resource lock, the lock is not included on the clone. You'll need to add a new resource lock if you want to protect the clone.
-
If the target Linode uses Metadata, with
has_user_dataset totrue, you need to create the clone withmetadata.user_datain the request. -
If the target Linode has a
vpcinterface on its active legacy configuration profile, and it includes a1:1 NAT, the resulting clone is configured with anany1:1 NAT. See the VPC documentation guide for its specifications and limitations. -
Only next generation network (NGN) data centers (regions) support VLANs. If a VLAN is attached to your Linode and you try to clone it to a non-NGN region, the clone won't start. If a Linode can't be cloned because of an incompatibility, you're prompted to select a different region or contact support. See the VLANs Overview guide for more specifications and limitations.
Permissions and scopes
To call this operation, you need the following:
-
Identity and access permissions. Your user needs a role with these permissions assigned. Learn more.
- Permissions:
clone_linode
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
linodes:read_write
- Scopes:
CLI
linode-cli linodes clone 123 \
--linode_id 124 \
--region us-east \
--type g6-standard-2 \
--label cloned-linode \
--backups_enabled true \
--placement_group.id 528 \
--disks 25674 \
--configs 23456 \
--private_ip true \
--metadata.user_data I2Nsb3VkLWNvbmZpZw==