Help with copy and pasting to droplet

I created a webserver locally using my Ubuntu computer at home.

Now I am trying to migrate that server to digital ocean and my python files keep getting corrupted.

I tried to use visual studio code and copy and paste my code from the local Ubuntu computer to the Ubuntu droplet but the console doesn’t let you copy and paste and I tried using vnc and that doesn’t work either.

I tried uploading my files to github then downloading them but they still had corruption.

I don’t want to write thousands of lines of code again.

Is there anyway to copy and paste from the droplet? Looking for this to be something very easy. If requires downloading and configuring a bunch of stuff then this won’t work


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.

Hi there @Learningdrops,

I would recommend using the rsync command to copy the files from your local machine to the Droplet.

You can do that by following the steps here:

However, this should also work fine with Git and GitHub. Are the files corrupted when you push them to GitHub or are the files corrupted when you pull them to the Droplet from GitHub?

Also, I could suggest when accessing the Droplet to use SSH rather than the Web console, that way you will be able to copy and paste:

Hope that this helps. Regards, Bobby