将本地解析服务器同步到云解析服务器 [英] Synchronizing local parse server to cloud parse server
问题描述
这是我的情况,我有一个本地解析服务器,由于缺乏一致的互联网资源可用性,我的所有客户端设备都主要连接到该服务器.我打算拥有一个云托管解析服务器,只要有可能是定期的互联网资源可用,本地解析就可以与该服务器进行数据同步(拉和推).怎样才能做到这一点?这个想法是在两个解析 servrr 实例之间同步数据
Here is my situation i have a local parse server to which all my client devices are primarily connected due to the lack of consistent internet resource availability. I intend to have a cloud hosted parse server to which the local parse can data sync with (pull and push) whenever there is availability of internet resources which may be periodic . How can that be achieved ? The idea is to sync data between both parse servrr instances
推荐答案
您知道 parse-server 本身不会保存您的数据.您确定要参考的是您的数据库.
You know that parse-server by itself does not save your data. What am sure you are trying to refer to is your database.
最好的方法是当您有互联网连接时,根据需要将您的 mongo 数据从远程数据库源导出和导入到远程数据源.
The best way to go is to export and import your mongo data as needed from your remote db source to your remote data source when you have internet connectivity.
如果需要,您也可以尝试使用 ngrok.com 进行临时网络隧道
You may also try ngrok.com for temporary network tunneling if that is what you need
这篇关于将本地解析服务器同步到云解析服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!