Report this

What is the reason for this report?

Help with copy and pasting to droplet

Posted on June 8, 2021

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



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!

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:

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

Heya,

The best tutorial to follow on syncing local and remote files is this one:

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

You can also work in Visual Studio Code with remote development and commit your changes directly on your droplet using a plugin like the Remote SSH:

https://www.digitalocean.com/community/tutorials/how-to-use-visual-studio-code-for-remote-development-via-the-remote-ssh-plugin

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.