将文件从一个VM复制到另一个VM [英] Copying files from one VM to another VM

查看:125
本文介绍了将文件从一个VM复制到另一个VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个主VM(VM1)和一个辅助VM(VM2).如果VM1无法正常工作,则VM2会接管.

We have a primary VM (VM1) and a secondary VM (VM2). If VM1 is not working then VM2 takes over.

我们将文件存储在VM1上,并希望能够复制VM2上的所有文件.当然,当两个VM均未运行时,还会出现同步问题.

We store files on VM1 and would like to be able replicate all files on VM2. There is of course the added problem of synchronization when either of the VMs are not running.

在VM1上写入内容时,也应该在VM2上写入内容.如果VM2不可用,则应注意在VM2可用时要复制的特定文件.如果我们删除文件,将会发生类似的事情.

When something is written on VM1, it should also be written on VM2. If VM2 is not available then a note should be made for the specific files to be copied when VM2 is available. Something similar would happen if we delete a file.

我们暂时不使用Blob存储.

We do not use Blob storage for the time being.

有没有可以处理同步的工具,还是必须创建一个?

Is there a tool which can handle the synchronization or do we have to create one?

John

推荐答案

我建议您使用Azure File服务,因为这最适合您的情况.

Azure 文件服务 可用于在云中创建文件共享,而无需负责管理物理服务器,设备或设备的开销.您可以使用SMB 3.0协议在本地计算机上挂载文件共享,然后查看 并使用 存储资源管理器 .

Azure Files service can be used to create file shares in the cloud, without being responsible for managing the overhead of a physical server, device, or appliance. You can mount the file share on your local machine by using the SMB 3.0 protocol and view and manage it using Storage Explorer.

您可以使用Azure File Sync将组织的文件共享集中在Azure Files中,同时保持灵活性,性能, 本地文件服务器的兼容性和兼容性.

You can use Azure File Sync to centralize your organization's file shares in Azure Files, while keeping the flexibility, performance, and compatibility of an on-premises file server.

您可以请参阅" 存储 文件常见问题解答 "以获取更多详细信息.另外,您可以检查"

You may refer to ‘Storage files FAQ’ for more details. Also, you may check, "Managing Azure file shares".

此外,有类似的讨论 在这里 ,请仔细查看.这可能会对您有所帮助.

Also, there is a similar discussion here, kindly look into it. This might help you.


这篇关于将文件从一个VM复制到另一个VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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