My droplet was taken offline. Now I need to move to a new droplet. But I need the snapshot of the old droplet. How can I get it.

On the new droplet (which is just vanilla ubuntu), the old droplet has been mounted (/mnt). Can I simply copy paste all the old droplet files (from /mnt) to the new droplet? Will it work? PL advise the best approach.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

When using the RecoveryISO that support can mount for you, one option is to set up an SSH server in the recovery environment. To do this:

Mount your disk from the menu Configure Networking from the menu Select the option to set up ssh

The ssh server will be downloaded and installed and when it’s complete you will be shown a temporary password. You can use this password with the root user to copy files over sftp/scp.

To do this from your new droplet and copy everything in /mnt to /root/backup on your new server (assuming the directory /root/backup already exists) you do do:

scp -r root@[old_droplet_ip]:/mnt/* /root/backup/.

This will copy the entirety of the /mnt directory over. In actual use you’ll likely want to select just the files you need to move (like /var/www/html) and do something like:

scp -r root@[old_droplet_ip]:/mnt/var/www/* /root/backup/.