[英]Does seafile store synced files anywhere?
I'm using Seafile (on docker) to sync some files to a Synology nas and it is all working correctly.我正在使用 Seafile(在 docker 上)将一些文件同步到 Synology nas,并且一切正常。 I've created an external folder that is pointed to
/shared
folder in the container.我创建了一个指向容器中
/shared
文件夹的外部文件夹。
I think I already know the answer, but are the files synced to the server stored 'normally' somewhere?我想我已经知道答案了,但是同步到服务器的文件是否“正常”存储在某个地方? ie If I sync a folder called 'photos' and it has 'a.jpg' in it, will I be able to find that file on the seafile server?
即,如果我同步一个名为“photos”的文件夹并且其中包含“a.jpg”,我能否在 seafile 服务器上找到该文件?
The reason for the question is I would like to backup the original files that are sync'd, rather than having to backup the seafile DB, etc.问题的原因是我想备份同步的原始文件,而不是备份 seafile 数据库等。
(I am aware that syncthing does what I want, so I may choose to use that instead, just want to confirm my understanding) (我知道 syncthing 做我想要的,所以我可能会选择使用它,只是想确认我的理解)
Thanks谢谢
No you won't find your a.jpg
file on the server.不,您不会在服务器上找到您的
a.jpg
文件。 Your files are going to be turned into blocks of bytes.您的文件将被转换为字节块。
If you take a look at this part of the documentation of data model如果您看一下数据model的这部分文档
FS
FS
There are two types of FS objects, SeafDir Object and Seafile Object.
FS 对象有两种类型,SeafDir Object 和 Seafile Object。 SeafDir Object represents a directory, and Seafile Object represents a file.
SeafDir Object 代表一个目录,Seafile Object 代表一个文件。
Block
堵塞
A file is further divided into blocks with variable lengths.
文件被进一步划分为具有可变长度的块。 We use Content Defined Chunking algorithm to divide file into blocks.
我们使用内容定义的分块算法将文件分成块。 A clear overview of this algorithm can be found at http://pdos.csail.mit.edu/papers/lbfs:sosp01/lbfs.pdf .
可以在http://pdos.csail.mit.edu/papers/lbfs:sosp01/lbfs.pdf中找到该算法的清晰概述。 On average, a block's size is around 1MB.
平均而言,一个块的大小约为 1MB。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.