Linux -- lftp命令从远端FTP服务器下载文件
2020-05-08 本文已影响0人
生信摆渡
1 Save download command into a shell file:
$ more download.sh
lftp -c 'ftp_server_address; user user_name user_password; mirror source_dir .; quit'
Parameters:
- ftp_server_address: ftp srver address, e.g. xxx.xxx.xxx
- user_name: user name
- user_password: user password
- source_dir: directory where target files located at
2 Usage
- Change local server directory to where you wanna get target files save
$ cd Raw_data
- Execute download.sh
Comfirm that file download.sh is located at save_directory and then execute command below
$ echo "bash download.sh" | qsub -N download -cwd