[英]Transfer images from ArangoDB’s file system to amazon s3
I am currently using ArangoDB to store all the data I'm using for my application, including images.我目前正在使用 ArangoDB 来存储我用于我的应用程序的所有数据,包括图像。 Now I want to migrate to S3 to store the image files and transfer the files I currently have in my ArangoDB.
现在我想迁移到 S3 来存储图像文件并传输我当前在 ArangoDB 中的文件。
I am aware that images are stored in file system, but I am not sure how to actually transfer them to s3.我知道图像存储在文件系统中,但我不确定如何将它们实际传输到 s3。
Thank you for your help谢谢您的帮助
The location of the data files is implementation-specific, as it can be changed at install and startup.数据文件的位置是特定于实现的,因为它可以在安装和启动时更改。 On Linux, the default directory is
/var/lib/arangodb3
.在 Linux 上,默认目录是
/var/lib/arangodb3
。
But in my experience, backing-up the raw storage files is not a good idea.但根据我的经验,备份原始存储文件并不是一个好主意。 I have found it very difficult to restore or access data with this method.
我发现用这种方法恢复或访问数据非常困难。 Instead, I recommend using one of these two "official" methods:
相反,我建议使用这两种“官方”方法中的一种:
Snapshot-style "Hot backups" are really great - truly the preferred method.快照式“热备份”真的很棒——确实是首选方法。 They have everything you would need (speed, reliability, portability, etc.), with only a few case-dependent limitations .
它们拥有您需要的一切(速度、可靠性、便携性等),只有少数与案例相关的限制。 The real downside is that it's only available in the enterprise editions (including Oasis ).
真正的缺点是它仅在企业版(包括Oasis )中可用。
JSON export is the "thrifty" backup option - I would forget about arangorestore (it does horrible things to your _id/_key values, and takes forever to do so). JSON export 是“节俭”的备份选项——我会忘记arangorestore (它对你的 _id/_key 值做了可怕的事情,并且永远这样做)。 The good news about JSON export is that it's EXTREMELY portable.
关于JSON导出的好消息是它非常便携。 Almost ANY code-base (and even most good DB's) can work with it, so you're never locked into a single product or workflow, or even a specific version of ArangoDB (making up/down-grades much easier).
几乎任何代码库(甚至是大多数优秀的数据库)都可以使用它,所以你永远不会被锁定在一个单一的产品或工作流程中,甚至是特定版本的 ArangoDB(使升级/降级更容易)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.