2012-09-27 59 views

回答

-1

嘗試.....

#!/bin/bash

HOST='172.13.17.11'

USER='username'

PASS='password'

TARGETFOLDER='/mnt/htdocs/businessfiles/files'

SOURCEFOLDER='/somefolder'

lftp -f "

open $HOST

user $USER $PASS

lcd $TARGETFOLDER

mirror --verbose $SOURCEFOLDER $TARGETFOLDER

bye 「'

相關問題