ftp(sftp, scp, ftp 등)로 일련번호 붙은 다수의 파일을 한번에 받을려면?
      글쓴이: foruses / 작성시간: 목, 2008/10/09 - 6:24오후    
  
  안녕하세요.
일련번호 붙은 파일들(data.100.txt, data.101.txt.....data.150.txt)을 
한꺼번에 다운로드 받으려고 하는데요,
scp user@ip:/home/data.{100,150}.txt .
이렇게 하면, 파일 하나 옮길 때마다 패스워드를 쳐주어야 되더라구요.
혹시 ftp도 좋고, sftp도 좋고, scp 옵션으로도 좋고, 
암튼 한 번에 여러 파일을 옮기는 방법으로 어떤 것을 추천하는지요.
모두 불가능하다면, 따로 파일 리스트를 만들어서 받는 방법도 가능한지요.
참, ssh key 생성에 의한 동기화...방법은 불가능한 듯 합니다.
감사합니다.
Forums: 


ssh host "tar cvf - data*" |
ssh host "tar cvf - data*" | tar xvf -좀 구차하지만, 요런것도;;
--
Life is short. damn short...
--
Life is short. damn short...
scp 가 되면 로그인이
scp 가 되면 로그인이 되는것이겠죠?
그럼 scp data.{100,150}.txt user@target:/home/ 으로 하면 되지 않을까요?
그런데 jj 님 방식이 더 빠를겁니다.
cjf 로 압축을 한다면 훨씬 더요.
emerge money
http://wiki.kldp.org/wiki.php/GentooInstallSimple - 명령어도 몇개 안되요~
http://xenosi.de/
https://xenosi.de/
{와 }를 \{와 \}로
{와 }를 \{와 \}로 변경하시면 됩니다.
감사..앗, 그런데...
scp user@target:/home/data.\{100,150\}.txt .
이렇게 하니, data.100과 data.150 두개의 파일만 받아집니다.
고 사이에 해당하는 파일도 받고 싶어요~~
scp
scp user@target:/home/data.1\{[0-4][0-9],50\}.txt .
또는
scp user@target:/home/data.\{`seq -s, 100 150`\}.txt .
저는 이런 방법 밖에 모르겠네요.
고맙습니다..
scp user@target:/home/data.1{[0-4][0-9],50}.txt .
알려주신 방법들 중 위 방법이 직관적으로 이해하기도 좋고 이용하기도 편리해 보입니다..감사~
scp/sftp 를 자주
scp/sftp 를 자주 쓰신다면 sshfs 로 로컬에 마운트시켜 놓고 즐기세요.
[bushi@rose net]$ yum info fuse-sshfs Excluding Packages in global exclude list Finished Available Packages Name : fuse-sshfs Arch : i386 Version : 2.1 Release : 1.fc8 Size : 49 k Repo : updates-newkey Summary : FUSE-Filesystem to access remote filesystems via SSH URL : <a href="http://fuse.sourceforge.net/sshfs.html License" rel="nofollow">http://fuse.sourceforge.net/sshfs.html License</a> : GPLv2 Description: This is a FUSE-filesystem client based on the SSH File Transfer : Protocol. Since most SSH servers already support this protocol it : is very easy to set up: i.e. on the server side there's nothing to : do. On the client side mounting the filesystem is as easy as : logging into the server with ssh. [bushi@rose net]$filezilla 같은 GUI 툴도 있습니다.
[bushi@rose net]$ yum info filezilla Excluding Packages in global exclude list Finished Installed Packages Name : filezilla Arch : i386 Version : 3.1.0.1 Release : 1.fc8 Size : 7.4 M Repo : installed Summary : FileZilla FTP, FTPS and SFTP client URL : <a href="http://filezilla-project.org/ License" rel="nofollow">http://filezilla-project.org/ License</a> : GPLv2+ Description: FileZilla is a FTP, FTPS and SFTP client for Linux with a lot of : features. - Supports FTP, FTP over SSL/TLS (FTPS) and SSH File : Transfer Protocol (SFTP) - Cross-platform - Available in many : languages - Supports resume and transfer of large files >4GB - Easy : to use Site Manager and transfer queue - Drag & drop support - : Speed limits - Filename filters - Network configuration wizard [bushi@rose net]$OTL
댓글 달기