简体   繁体   English

AWS AMI Neo4j 备份

[英]AWS AMI Neo4j Backups

I am running the official AMI provided by Neo4j on AWS.我正在 AWS 上运行 Neo4j 提供的官方 AMI

I would like to backup the Database regularly to s3, but i am not really sure where to start.我想定期将数据库备份到 s3,但我不确定从哪里开始。

Ideally if the AMI could have a scheduled task to auto backup to s3 that would be best, can i setup a Shell script something like this ?理想情况下,如果 AMI 可以有一个自动备份到 s3 的计划任务,那将是最好的,我可以设置一个类似这样的 Shell 脚本吗? How do i ensure it stays installed and scheduled on the AMI machine?我如何确保它在 AMI 机器上保持安装和调度?

I Took some time to understand and then edit the script that i linked to in the original post.我花了一些时间来理解然后编辑我在原始帖子中链接到的脚本。

The main take away was that there is no way to backup the DB while it is online, so you need a script that takes it offline copies the contents of graph.db and then restarts the DB.主要的收获是无法在数据库在线时对其进行备份,因此您需要一个脚本使其离线复制 graph.db 的内容,然后重新启动数据库。

Link to an updated Gist链接到更新的Gist

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

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