我希望组合一个简单的可编写脚本的备份实用程序来获取远程 ftp 服务器上的所有文件并将它们放入我的计算机上的备份目录中。我已经尝试过内置的 Windows“ftp”命令和 Filezilla 有限的命令行选项,但似乎都无法一次性获取整个文档树。关于如何从命令行完成此操作(如果需要,使用免费命令行软件)的任何想法,以便我可以将其设置为计划任务?
提前致谢!
I'm looking to put together a simple scriptable backup utility to grab all the files on a remote ftp server and drop them in a backup directory on my machine. I already tried the built-in Windows "ftp" command and Filezilla's limited command line options, but neither seems to be able to grab the whole document tree in one go. Any ideas about how I can accomplish this from the command line (with free command line software if necessary) so I can set it up as a scheduled task?
Thanks in advance!
发布评论
评论(1)
尝试 lftp 或 wget 并使用 -m 标志(请参阅 https://serverfault.com/questions/25199/using-wget-to-recursively-download-whole-ftp-directories)
Try lftp or wget and use the -m flag (see https://serverfault.com/questions/25199/using-wget-to-recursively-download-whole-ftp-directories)