Thursday, August 20, 2020

To upload file or video from local to server and from server to local download

 Goto pem file location and

open terminal or git bash with current path

Method1: If you want upload all videos from the directory(*):

scp -i abc-projectname.pem ../r2w-app-videos/* ubuntu@00.000.000.00:/var/www/html/r2w-app-videos

Method2: If any specific video upload:

scp -i abc-xyz.pem ../abc-app-videos/abc-intro-video-english.mp4 ubuntu@00.000.000.00:/var/www/html/abc-app-videos

OR

Method3: Specific drive(F) based approach

Here I mentioned full path location for pem file and video file:

scp -i /f/mfpem/xyz-test.pem /f/abc-app-videos/abc-intro-video-english.mp4 ubuntu@10.000.000.00:/var/www/html/abc-app-videos

Method 4:  Linux

Local to server upload:
scp -i /home/krishna/pems/abc-xyz.pem  MF_Production_android_app_13_06_2019.apk   ubuntu@10.100.00.00:/var/www/html/mf_lms_api/android_app

Server to local download:

scp -i /home/krishna/pems/xyz-project.pem ubuntu@10.00.000.000:/var/www/html/test_apis/public/interface/O8k4Ysdfdf99/field_convertor.json /home/krishna/Downloads