By vikazsinha
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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/.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.