Private
Server IP : 195.201.23.43  /  Your IP : 3.145.85.212
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/awscli/examples/lightsail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/python3/dist-packages/awscli/examples/lightsail/create-disk-snapshot.rst
**Example 1: To create a snapshot of a disk**

The following ``create-disk-snapshot`` example creates a snapshot named ``DiskSnapshot-1`` of the specified block storage disk. ::

    aws lightsail create-disk-snapshot \
        --disk-name Disk-1 \
        --disk-snapshot-name DiskSnapshot-1

Output::

   {
       "operations": [
           {
               "id": "fa74c6d2-03a3-4f42-a7c7-792f124d534b",
               "resourceName": "DiskSnapshot-1",
               "resourceType": "DiskSnapshot",
               "createdAt": 1569625129.739,
               "location": {
                   "availabilityZone": "all",
                   "regionName": "us-west-2"
               },
               "isTerminal": false,
               "operationDetails": "Disk-1",
               "operationType": "CreateDiskSnapshot",
               "status": "Started",
               "statusChangedAt": 1569625129.739
           },
           {
               "id": "920a25df-185c-4528-87cd-7b85f5488c06",
               "resourceName": "Disk-1",
               "resourceType": "Disk",
               "createdAt": 1569625129.739,
               "location": {
                   "availabilityZone": "us-west-2a",
                   "regionName": "us-west-2"
               },
               "isTerminal": false,
               "operationDetails": "DiskSnapshot-1",
               "operationType": "CreateDiskSnapshot",
               "status": "Started",
               "statusChangedAt": 1569625129.739
           }
       ]
   }

**Example 2: To create a snapshot of an instance's system disk**

The following ``create-disk-snapshot`` example creates a snapshot of the specified instance's system disk. ::

    aws lightsail create-disk-snapshot \
        --instance-name WordPress-1 \
        --disk-snapshot-name SystemDiskSnapshot-1

Output::

    {
        "operations": [
            {
                "id": "f508cf1c-6597-42a6-a4c3-4aebd75af0d9",
                "resourceName": "SystemDiskSnapshot-1",
                "resourceType": "DiskSnapshot",
                "createdAt": 1569625294.685,
                "location": {
                    "availabilityZone": "all",
                    "regionName": "us-west-2"
                },
                "isTerminal": false,
                "operationDetails": "WordPress-1",
                "operationType": "CreateDiskSnapshot",
                "status": "Started",
                "statusChangedAt": 1569625294.685
            },
            {
                "id": "0bb9f712-da3b-4d99-b508-3bf871d989e5",
                "resourceName": "WordPress-1",
                "resourceType": "Instance",
                "createdAt": 1569625294.685,
                "location": {
                    "availabilityZone": "us-west-2a",
                    "regionName": "us-west-2"
                },
                "isTerminal": false,
                "operationDetails": "SystemDiskSnapshot-1",
                "operationType": "CreateDiskSnapshot",
                "status": "Started",
                "statusChangedAt": 1569625294.685
            }
        ]
    }

For more information, see `Snapshots in Amazon Lightsail <https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-instance-snapshots-in-amazon-lightsail>`__ and `Creating a snapshot of an instance root volume in Amazon Lightsail <https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-create-an-instance-root-volume-snapshot>`__ in the *Lightsail Developer Guide*.
Private