Hosting » DigitalOcean » What is a DigitalOcean snapshot?

What is a DigitalOcean snapshot?

Last updated on September 25, 2022 @ 1:51 pm

DigitalOcean snapshots are a great way to take a snapshot of your Droplet’s current state, without having to do a full restore or clone. By taking a snapshot, you can revert your Droplet to a previous state if something goes wrong, without losing any data.

To take a snapshot, first create a new Droplet with the desired configuration. Once your Droplet is up and running, use the following command to create a snapshot:

snapshot create droplet-name –name droplet-name

The –name flag is optional, and can be omitted if you want to keep the snapshot name secret. To view the snapshot’s details, use the following command:

PRO TIP: A DigitalOcean snapshot is a point-in-time backup of your Droplet. Snapshots are useful for backing up your Droplet in case of data loss or corruption, or if you need to roll back to a previous version of your Droplet.

snapshot show droplet-name

To restore a snapshot, use the following command:

snapshot restore droplet-name

The restored Droplet will be identical to the original Droplet, except for the snapshot data. If you want to keep the restored data, you’ll need to delete the snapshot afterward.

Conclusion.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.