How do I transfer files from my droplet to the hosting company of a .com address

I have a droplet set up on Ubuntu and I need to upload the site to the company hosting the url. How can I do this?


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.

Accepted Answer

Hi @dcollinsClam,

If you have SSH access to your new hosting you can either use the scp or the rsync command.

Imagine you want to use scp, you’ll need to SSH to your droplet with DigitalOcean.

ssh root@YourDropletIp

Go to the directory you wish to migrate and type in the following command

scp -R DirectoryOfYourWebsite UserOfNewHosting@NewHostingIP:/path/to/where/your/files/will/be/stored

This will ask for the user password of your new hosting.

Regards, KDSys