Hi,
I broke my website and now I am trying to spin a new droplet and copy the files from one droplet to another.
Can anyone let me know how I can do this?
Thanks a lot.
Mark
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!
This comment has been deleted
Maybe a stupid question. But if I use this function it is saying. Connection refused. I am using SSH. So don’t have a root password. Does anybody know how to run the sudo scp command between servers what that?
It’s pretty easy. You can use scp to transfer your files over ssh.
scp -r /path/to/my/files root@0.0.0.0:/path/on/remote/droplet
Of course you will need to replace 0.0.0.0 with your new droplet’s IP and update the paths included above. This command would copy everything in /path/to/my/files to the directory /path/on/remote/droplet on the other droplet.
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.