Linux文件操作命令之LFTP、FTP 发表于 2018-04-11 | 分类于 linux | | 阅读次数 我的操作脚本范例: 123456789101112131415161718192021222324252627282930#!/bin/bashHOST="v0.ftp.upyun.com"USER="your_name/your_project_name"PASS="your_password"LCD="/home/work/bak"RCD="/bx-hk"lftp -c "open ftp://v0.ftp.upyun.comuser $USER $PASS;lcd $LCD;cd $RCD;mirror --reverse --only-newer --dereference --verbose \--exclude-glob=*.php \--exclude-glob=*.xml \--exclude-glob=*.htm \--exclude-glob=*.html \--exclude-glob=*.psd \--exclude-glob=*.mo \--exclude-glob=*.po \--exclude-glob=*.pot \--exclude-glob=arthemia/ \--exclude-glob=ad/ \--exclude-glob=report/ \--verbose;"