用于在远程共享之间复制文件的 SMB 协议 [英] SMB protocol for copying files between remote shares

查看:57
本文介绍了用于在远程共享之间复制文件的 SMB 协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从远程共享\s1复制大量数据到共享\s2.我正在使用 robocopy,它使用 SMB 协议来复制文件.我的问题 - 该协议是否允许直接将数据从 S1 复制到 S2,还是所有数据都必须通过运行 robocopy 的机器?

I need to copy a lot of data from remote share \s1 to share \s2. I'm using robocopy, which uses SMB protocol to copy files. My question -- does the protocol allow to copy data from S1 to S2 directly or all data has to go through the machine on which robocopy is running?

推荐答案

它使用运行它的机器.它从内存中的复制数据(在当前机器上 - 当前),然后从那里复制到目标.没有其他方法(好吧,可能有一个客户端/服务器在 source/target 上运行,并且可以远程配置客户端以直接打开到服务器的隧道,并且传输文件 - 但这里不是这样).

It uses the machine that it's running on. It copies the data from source in memory (on the current machine - current) and from there to target. There's no other way (well there could be a client/server running on source/target and the client is able to be configured remotely to open a tunnel directly to the server and transfer the files - but that's not the case here).

您可以尝试robocopy一个大文件从目标并使用任务管理器来检查这一点> 监控网络流量:

You can check this out by trying to robocopy a large file from source to target and using Task Manager monitor the network traffic on:

  • current - 传入 + 传出
  • 来源 - 传出
  • 目标 - 传入
  • current - incoming + outgoing
  • source - outgoing
  • target - incoming

并查看以下任何匹配项(如预期):

and see that any of the following match (as expected):

  • source - 传出 = target - 传入
  • source - outgoing = target - incoming

还有这些(current 发挥作用的地方):

but also these ones (where current comes into play):

  • source - 传出 = current - 传入
  • current - 传出 = target - 传入
  • source - outgoing = current - incoming
  • current - outgoing = target - incoming

要直接robocopy(或任何其他文件传输工具)必须在目标上运行.

To do it directly robocopy (or any other file transfer tool) must run on either source or target.

这篇关于用于在远程共享之间复制文件的 SMB 协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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