Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.
See https://www.paws-r-sdk.com/docs/lightsail_create_disk_snapshot/ for full documentation.
lightsail_create_disk_snapshot(
diskName = NULL,
diskSnapshotName,
instanceName = NULL,
tags = NULL
)
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually
exclusive.
[required] The name of the destination disk snapshot (my-disk-snapshot
) based on
the source disk.
The unique name of the source instance
(Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of
the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually
exclusive.
The tag keys and optional values to add to the resource during create.
Use the tag_resource
action to tag a
resource after it's created.