A file upload from local to remote. (파일 한개를 원격서버에 보낼때)
#local> scp [option] filename dev@inwelly.com:/var/test_folder/www
The files upload from local to remote. (여러 파일을 원격 서버에 보낼때)
#local> scp [option] filename1 filename2 dev@inwelly.com:/var/test_folder/www
There are file and folder upload ( 여러 파일과 디렉터를 원격 서버에 보낼때)
#local> scp -r test_folder dev@inwelly.com:/var/test_folder/www
옵션의 종류
-r : 디렉토리 내 모든 파일, 폴더 복사
-p : 원본 권한 속성 유지
-P : 포트 번호 지정
-c : 압축복사
-v : 과정 출력
-a : 아카이브 모드
파일 한개를 원격서버에서 로컬에 보낼때
#local> scp [option] dev@inwelly.com:/var/test_folder/www/filename ./tmp
여러 파일을 원격서버에서 로컬로 보낼때
#local> scp [option] dev@inwelly.com:”/var/test_folder/www/filename1 /var/test_folder/www/filename2” ./tmp
여러개의 파일과 디렉터리를 원격서버에서 로컬로 보낼때
#local> scp -r dev@inwelly.com:/var/test_folder/www/folder1 ./tmp