로컬에서 작업한 파일을 서버로 싱크로 올리고 싶을때 lftp 사용


open -u 아이디,패스워드 ftp://서버주소
mirror -R . /

 


이렇게 sync.txt 파일을 만들고

lftp -f sync.txt

하면 싱크

 

 

좀더 고난이도 : recursive 없이, 특정 파일을 제외하고 올리기



mirror -R --no-recursion --exclude __sync.bat --exclude _sync.txt . /

Posted by 키플러
,