简体   繁体   English

如何从备份中恢复orientdb容器

[英]how to restore orientdb container from backup

I am running orientdb as docker container with mounts on host filesystem. 我正在运行orientdb作为docker容器,并在主机文件系统上安装。 I have the database mounted on host on /opt/orientdb/databases and will like to restore lets say database from another container on another host on a different container. 我将数据库安装在/opt/orientdb/databases上的主机上,并希望从另一个容器上的另一个容器上恢复数据库。

Do i just copy the path to the database /opt/orientdb/database/<database-name> from the host to the second host and restart the container? 我是否只是将数据库/opt/orientdb/database/<database-name>的路径从主机复制到第二台主机并重启容器?

If not then what is the best way to restore from backups WHEN running on docker containers? 如果没有,那么在docker容器上运行时从备份恢复的最佳方法是什么?

OrientDB version 2.1.12 OrientDB版本2.1.12

Thanks 谢谢

Yes, you can copy the database from host1 to host2 and run another container on host2. 是的,您可以将数据库从host1复制到host2并在host2上运行另一个容器。 Be sure to stop the container on host1, sync/copy the database, start the container on host2. 确保在host1上停止容器,同步/复制数据库,在host2上启动容器。

If you need to run the two instances at the same time, you can use replication: 如果需要同时运行这两个实例,可以使用复制:

http://orientdb.com/docs/last/Distributed-Configuration.html http://orientdb.com/docs/last/Distributed-Configuration.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM