Report this

What is the reason for this report?

Downloading source code

Posted on July 17, 2020

I was given limited instructions from my freelance webdeveloper.

Using Windows Powershell or Visual Studio I can connect to my site using

ssh root@ip address

This takes me to the root folder. I then type in cd /pathname/ (the actual path to where my source code is stored)

This takes me to the folder where my source code is at but I do not know how to extract/export/download/copy or any other method of getting my source code. I need to make some changes and the I will need to also know how to load those changes back?



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 @MattRemoteFNI,

You can use scp or rsync to copy your files to your local machine. Let’s say you are using Visual Studio’s terminal. What you can do is the following :

scp -R root@XXX.XXX.XXX.XXX:/path/to/web/root /local/path/to/coppy

This will copy the WebRoot folder to your local machine.

Ofcourse please remember to chance XXX.XXX.XXX.XXX with your actual IP as well.

Once you have made the changes you can again upload them with scp :

scp -R /local/path/to/copy root@XXX.XXX.XXX.XXX:/path/to/web/root

Regards, KFSys

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.