월간 인기 게시물

게시물 1,377건
   
parallel-scp [pscp] - multi scp
글쓴이 : 최고관리자 날짜 : 2015-12-07 (월) 14:40 조회 : 5322
글주소 :
                                



관련 URL

pscp (parallel-scp)
파일로 전송할 서버 그룹을 만들어 동시에 scp 명령어 사용 


Ubuntu 
# apt-get install pssh

CentOS & RHEL
# yum install pssh


사용법
전송할 서버리스트 파일작성은 {아이피}:{포트} 형태로 작성
# cat smileserv.txt 
10.0.0.10:22
10.0.0.12:22
10.0.0.44:22

parallel-scp -h <파일명> -l <사용자> -Av <전송할 파일명> <전송될 서버에서 파일경로>
#  parallel-scp -h smileserv.txt -lsmileserv -Av cloudv.kr /home/smileserv



# parallel-scp --help
Usage: parallel-scp [OPTIONS] -h hosts.txt local remote

Options:
  --help                show this help message and exit
  -h HOST_FILE, --hosts=HOST_FILE
                        hosts file (each line "[user@]host[:port]")
  -H HOST_STRING, --host=HOST_STRING
                        additional host entries ("[user@]host[:port]")
  -l USER, --user=USER  username (OPTIONAL)
  -p PAR, --par=PAR     max number of parallel threads (OPTIONAL)
  -o OUTDIR, --outdir=OUTDIR
                        output directory for stdout files (OPTIONAL)
  -e ERRDIR, --errdir=ERRDIR
                        output directory for stderr files (OPTIONAL)
  -t TIMEOUT, --timeout=TIMEOUT
                        timeout (secs) (0 = no timeout) per host (OPTIONAL)
  -O OPTION, --option=OPTION
                        SSH option (OPTIONAL)
  -v, --verbose         turn on warning and diagnostic messages (OPTIONAL)
  -A, --askpass         Ask for a password (OPTIONAL)
  -x ARGS, --extra-args=ARGS
                        Extra command-line arguments, with processing for
                        spaces, quotes, and backslashes
  -X ARG, --extra-arg=ARG
                        Extra command-line argument
  -r, --recursive       recusively copy directories (OPTIONAL) 

Example: pscp -h hosts.txt -l irb2 foo.txt /home/irb2/foo.txt


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.