セキュリティの関係で WEBサーバーとWEBサーバーからしかアクセスできないDBサーバーの構成で・・・ 一部プログラムをDBサーバー側に置く必要があるがDBサーバーには直でつなげないから WEBサーバーに一度アップしてsftpでコマンド毎回たたいて送ってたけどメンドいのでlftpを使ってみた。 lftpのmirrorを使って完成~♪ #!/bin/sh LOCAL_DIRNAME=$1 REMOTE_DIRNAME=$2 USERID=$3 PASSWAD=$4 FTPSITE=$5 if [ -d $LOCAL_DIRNAME ] then lftp <<- END open -u $USERID,$PASSWAD $FTPSITE lcd $LOCAL_DIRNAME cd /$REMOTE_DIRNAME mirror -Rv END else echo "No such direc