Help with copy and pasting to droplet

Posted June 8, 2021 45 views
PythonUbuntu 20.04

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

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.

Submit an Answer
1 answer

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.

by Justin Ellingwood
Rsync is a tool for intelligently syncing local and remote directories. In this article we will explore the basic usage of this utility to copy files from directory to directory and from system to system.