自动 sftp 上传过程 [英] automate sftp upload process

查看:52
本文介绍了自动 sftp 上传过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将文件/目录结构从一台服务器上传到另一台服务器的方法.就我而言,唯一可能的方法是 SFTP 上传,是否有任何简单的方法可以上传它,使用脚本或其他方法而不存档文件/目录,我想在远程服务器上重新创建?

I'm looking for a way to upload files/dirs structure from one server to another.. The only way it's possible in my case is SFTP upload, is there any easy way to upload it, using script or something without making archive of files/dirs, I want to recreate on remote server?

谢谢!

推荐答案

也许可以使用递归 scp (scp -r) 找到解决方案?或者您是否明确仅限于 sftp?

Perhaps a solution could be found using recursive scp (scp -r)? Or are you limited explicitly to sftp only?

还有一个名为 lftp 的客户端,它具有 sftp 和脚本支持 - 很像我想象的批处理文件 - 一个 ftp 命令列表.(http://lftp.yar.ru/lftp-man.html)

There's also a client named lftp which has sftp and scripting support - much like batch file I would imagine - a list of ftp commands. (http://lftp.yar.ru/lftp-man.html)

这篇关于自动 sftp 上传过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆