简体   繁体   English

将图像从 ArangoDB 的文件系统传输到 amazon s3

[英]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:相反,我建议使用这两种“官方”方法中的一种:

  1. Hot backups (enterprise-edition only) 热备份(仅限企业版)
  2. JSON export (usingarangobackup /arangoimport ) JSON 导出(使用arangobackup /arangoimport

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.

相关问题 从 GCP(Amazon S3 到谷歌云)中的存储传输服务传输数据是否有文件大小限制? - Is there any file size limit to transfer data from Storage Transfer service in GCP(Amazon S3 to google cloud)? 将大型数据集从 Amazon s3 传输到 Azure blob 存储 - Transfer large Datasets to Azure blob storage from Amazon s3 python 脚本使用 SAS 令牌将文件从 Amazon AWS s3 传输到 Azure Blob - python script to Transfer file from Amazon AWS s3 to Azure Blob using SAS Token 将 Amazon CloudFront 与 Amazon S3 Transfer Acceleration 一起使用? - Use Amazon CloudFront together with Amazon S3 Transfer Acceleration? 如何仅从 amazon s3 laravel 获取图像的文件名 - how to get filenames only of images from amazon s3 laravel 无法在部署时将文件从 S3 传输到 ElasticBeanstalk - Can't transfer file from S3 to ElasticBeanstalk on Deploy 在 Amazon S3 中上传带有恶意代码的图像 - Uploaded images with malicious code in Amazon S3 将文件从 FTP 传输到 AWS s3 的最佳方法是什么? - What is the best way to transfer file from FTP to AWS s3? 仅从 Amazon S3 存储桶中提取文件名 - Extract only file names from an Amazon S3 bucket 如何使用 cURL 从 Amazon S3 存储桶中删除文件 - How to delete a file from amazon S3 bucket using cURL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM