Warning: Use of undefined constant url - assumed 'url' (this will throw an Error in a future version of PHP) in /www/wwwroot/boke/wp-content/themes/boke/framework/functions/theme-functions.php on line 2211
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /www/wwwroot/boke/wp-content/themes/boke/framework/functions/theme-functions.php on line 2211
wget -nH -m --ftp-user=your_username --ftp-password=your_password ftp://your_ftp_host/*
解释:
-nH:不创建以主机名命名的目录。
–cut-dirs:希望去掉原来的目录层数,从根目录开始计算。如果想完全保留FTP原有的目录结构,则不要加该参数。
-m:下载所有子目录并且保留目录结构。
–ftp-user:FTP用户名
–ftp-password:FTP密码
ftp://xxx.xxx.xxx.xxx/*:FTP主机地址。最后可以跟目录名来下载指定目录。
指定下载目录例子:
wget -nH -m --ftp-user=user --ftp-password=123456 ftp://192.168.1.3/tom/
最好还是先打个压缩包,然后再下载。