2011年2月28日 星期一

use ftp and tar in shell script

ftp -in 192.168.1.2 << _EOF
quote user tester
quote pass tester
cd /download_folder
lcd /upload_folder
put | "tar -cjvf - test.data" test.data.tar.bz2
bye
_EOF

沒有留言: