Question

How to copy files from one server to another droplet

  • Posted December 2, 2014

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

Subscribe
Share

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.

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.

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.

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.

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.

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.

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.

scp -P 2222 -r -i /path/to/my/openSSH/key /path/to/my/files root@0.0.0.0:/path/on/remote/droplet you need to specify key of your remote droplet. if needed use puttygen to convert your key to OpenSSH your openSSH key should not accessible by others. example: permission 0400.

Udana

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?

What if the data to be transferred is around 30 GB + ? What do you suggest ? Lets say i am trying to copy from softlayer to a droplet?