Saturday, 16 March 2019

How to copy local files to remote server & remote server files to local system in ubuntu?

Copy local files to remote server(192.168.1.1)

 $ scp -r /home/rajkumar/Desktop/test ubuntu@192.168.1.1:/var/www/html/Projects/


Copy remote server(192.168.1.1) files to local system

$ scp -r username@domain:/var/www/html/Projects/test /home/rajkumar/Desktop 


 
 Copy local files to remote server(aws ec2)

$ scp -i "test.pem" /home/rajkumar/Desktop/rajkumar username@domainname:/var/www/html/Projects/


  Copy remote server(aws ec2) files to local system

$ scp -i "test.pem" -r username@domainname:/var/www/html/test/rajkumar /home/rajkumar/Desktop



No comments:

Post a Comment

Interactor in Rails

What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...