windows 从命令行通过 FTP 下载完整的远程目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3581224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:07:18  来源:igfitidea点击:

Downloading a full remote directory via FTP from the command line

windowscommand-lineftpbackup

提问by MarathonStudios

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?

我正在寻找一个简单的可编写脚本的备份实用程序来获取远程 ftp 服务器上的所有文件并将它们放在我机器上的备份目录中。我已经尝试过内置的 Windows“ftp”命令和 Filezilla 的有限命令行选项,但似乎都无法一次性抓取整个文档树。关于如何从命令行(如有必要,使用免费的命令行软件)完成此操作的任何想法,以便我可以将其设置为计划任务?

Thanks in advance!

提前致谢!