[英]How do you use Fabric to copy files between remote machines?
I need to copy huge files from remotemachine1 to remotemachine2-remotemachine10. 我需要将大量文件从remotemachine1复制到remotemachine2-remotemachine10。
What is the best way to do it ? 最好的方法是什么? Doing a get on remotemachine1 and then a put to all the remaining machines aren't ideal as the file is huge and I need to be able to send the Fabric command from my laptop.
在remotemachine1上进行获取,然后在其余所有计算机上进行放置都不理想,因为该文件很大,我需要能够从我的笔记本电脑发送Fabric命令。 The remotemachines are all in the same network.
远程计算机都在同一网络中。 Or should I do a run('rsync /file_on_remotemachine1 RemoteMachine2:/targetpath/') ?
还是应该运行('rsync / file_on_remotemachine1 RemoteMachine2:/ targetpath /')?
Is there a better way to do this in Fabric ? 在Fabric中有更好的方法吗?
如果可以的话,最好的方法是从remotemachine1运行脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.