span8
span4
嗨,
我是新来的泊坞窗世界,并试图获得的东西是如何工作的理解。我已经下载了几个用于FME Server中的泊坞窗撰写的文件,并使用泊坞的Windows平台的各地纷纷做了一些初步和他们玩。从我的观察至今,如果多克尔实例关闭使用的所有数据都将丢失docker-compose down -v命令,这样一个FME Server备份前应停止执行。
据资料中给出this post,建议离开泊坞窗容器中运行,让泊坞管理自己带来了FME Server实例上/下,如果主机重新启动。这将保留更改配置,所以都好,到目前为止,只是不关机的容器!
如果主机崩溃,会发生什么?我认为泊坞窗将无法正常关闭,所有FME Server配置信息会丢失?为此,我希望能建立FME Server,但由安全提供不给主机文件系统的任何访问撰写文件的定时备份,因此备份(其中,默认情况下,写入FME Server的资源文件夹,亚搏在线 which is internal to the container) would all get lost in this scenario.
有没有一种简单的方法来自动FME Server备份,使他们能够被写入到主机上的硬盘?理想情况下,我想做到这一点,而无需编辑由安全提供撰写的文件,尽管它看起来像我可能要更动量的定义。亚搏在线
我完全误解泊坞窗下运行FME Server的?是否有继续存在的FME Server配置更简单的方法?
谢谢,
尼克
你好@nic_ran,
所以这里就我这拿地解决大家的一些问题。一般情况下,卷将持续存在,即使容器由突发事件关闭。如果卷是专门删除的信息将只失去了任何设置-v旗docker-compose down命令或docker volume rm。
为了确保您不会丢失,即使物理服务器在运行FME Server上被损坏无法修复我肯定会推荐进行定期FME Server备份来回泊坞任何配置。有几个非常简单的方式来做到这一点与FME Server进行码头工人:
1。备份到一个资源:
您可以按计划运行的备份创建工作区,并写信给你备份或者到S3存储或网络共享可以访问。Here is some documentation。
2。下载VIA FME Server的REST API的备份:
我们有一个FME Server REST API endpoint它允许你下载一个FME Server备份。这可以在各种应用,包括FME Server本身自动执行此过程中使用。
一个更复杂的解决办法是安装一个专用的文件夹为可经由泊坞窗,撰写文件的容器来为您备份的安全位置。亚搏在线但最后,这是不是从加入网络共享您的FME服务器资源(见配液1),这使得这么多的不同the least recommended option对于这种情况下的修改泊坞窗,撰写文件,很容易造成失误。这样做的一个方法是指定要安装的特定卷的文件夹。下面是备份的文件夹的一个例子:
:-备份:/数据/ fmeserverdata /资源/ backups After: - /your_mounted_drive/backups:/data/fmeserverdata/resources/backups
Make sure to change all occurrences of this volume in the docker-compose file accordingly.You can then also remove this reference of the backups folder at volumes list at the end of the docker-compose file:
backups: driver: local
I hope this helps!
I haven't looked into the details, but I think you should be mounting a volume for your FME Server database, that way your instance is persisted without having to do backup/restore.
Some details here:https://knowledge.safe.com/questions/57041/docker-swarm-for-fme-server-containers.html
Unfortunately I was unable to find more detailed instruction from Safe on how to do this, I'm sure that's something that could be helpful to a lot of people (paging@GerhardAtSafe:-)
©2019安全亚搏在线软件公司|法律