Question

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

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories

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:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

Hope that this helps. Regards, Bobby