Downloading snapshots into local machines

September 7, 2015 48.7k views

The text below was posted on March 18, 2013. I am pretty sure Digital Ocean has created a way to download snapshot in a local machine at this point.
I would like to receive a step by step tutorial do do this procedure. Thank you very much.

"2. Snapshot and Backup Downloads
Customers have already been requesting that we provide a way for them to directly download their snapshots and backups so they can store them locally and allow for data portability. We will be implementing this as soon as possible. While this may seem like a trivial item to add, the complexity in rolling out this feature is to ensure security in the rollout because data will need to be made available from the backend NAS systems (which are completely off of the public network currently)."

15 Answers

If your intent is to backup a remote computer's HDD A via SSH to a single file that's on your local computer's HDD, you could do one of the following...

run from local computer

$ ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz

Will this policy change with the new snapshot policy of having to pay to store them?

Same here... moving on because of the shift in policy on snapshots and the inability to download them to our own storage. Also feeling like the new block storage pricing is a missed opportunity. To price it so highly means it can't fulfill our needs, which is affordable local-to-the-droplet storage.

Anyone downloaded a droplet and installed on his local server, kinda a clone environment for testing?

This makes no sense...if someone hack the account and destroy all your backups there is no way to recover it. I don't know why they don't have this simple option to download the backups just for extra security.

  • They were probably focusing on security when they designed this. However, that shouldn't mean that you can't securely download this data.

Hello and welcome to Digitalocean,

"Unfortunately you are unable to store a snapshot or backup outside of our environment."

Sorry to say it :-(

I was wondering the same thing. It would be nice to save locally, keep them on a external hdd or something, and then upload straight back up in case you ever need to. I usually make a lot of snapshots for the case you might ever need a full-backup and that does not happen often, so storing on local storage is very cheap that way.

Well, apparently I have to manually move all the most necessary, restoring many of my snapshots. Then, snapshots, and the droplet will be removed, and I'll have to find another hosting.

Has anybody done a personal Snapshot as detailed above and then done a successful restore?

Isn't that the test of a backup?

here is the command which worked for me:

ssh root@ipaddress "dd if=/dev/vda1 | gzip -1 -" | dd of=image.gz

  • And does that also end up capturing the state of your database and contents as well?

  • Any way to restore it to a newly created droplet?

  • You will get inconsistent data using this method, and restoration will be a pain in the ass. You're better off using tar or something similar.

  • Hi,

    sorry for this newbie question !

    how can i run it on my actual server with ssh ,

    im already connected to my ssh,

    but ssh root@myserverip that is ok for me

    but the part of dev/vda1
    how to know if my server partition name is the same

    • [root@***** ~]# ssh root@... "dd if=/dev/vda1 | gzip -1 -" | dd of=image.gz
      The authenticity of host '... (...)' can't be established.
      ECDSA key fingerprint is SHA256:0cBnluULKl+***********************************.
      ECDSA key fingerprint is MD5:9c:ac:2c:5a:42:48:d
      Are you sure you want to continue connecting (yes/no)? yes
      Warning: Permanently added '... (ECDSA) to the list of known hosts.
      root@...'s password:

You can vote for it on this link. The idea was proposed 5 years ago and has over 6000 votes. Digital Ocean claim that they have been "gathering feedback" since 2015. I wonder how much feedback they need.

is there any updates about this issue??
i really need it

Issue is now running 4 years. Elon Musk will likely be appearing supported by a zimmer frame before any cloud host allows this ... You can of course take a running snapshot from another machine but where would you upload it? You'd need the same CPU and chipset etc... I'd suggest taking a manifest of a VPS. You won't want to install most of it anyway, just the business end right? So what's needed is a basic bash script that takes a copy of all the dB. Web, VPN and crt's etc.... And zips them ready to be included anywhere else.

I love the hell outta digital ocean but this is really one sided thinking, this is why I have less than 1 GB stored in my DO acct at any one time, because the development end has to happen on my storage media, otherwise it physically belongs to Digital Ocean!

If devs had the opportunity to swap up and down stream with there DO accts I bet DO storage business would triple. Anyhow spinnup a droplet to check out something new, or test a scenario your afraid to try on your own hardware, lol, this what DO is good for, and I will continue to be supportive!

Have another answer? Share your knowledge.