¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
parallel-scp [pscp] - multi scp
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-12-07 (¿ù) 14:40 Á¶È¸ : 4348
±ÛÁÖ¼Ò :
                                



°ü·Ã 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.