美文网首页
Linux -- lftp命令从远端FTP服务器下载文件

Linux -- lftp命令从远端FTP服务器下载文件

作者: 生信摆渡 | 来源:发表于2020-05-08 13:41 被阅读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
    

    相关文章

      网友评论

          本文标题:Linux -- lftp命令从远端FTP服务器下载文件

          本文链接:https://www.haomeiwen.com/subject/crkfnhtx.html