Enterprise File Fabric
此后端支持 Storage Made Easy 公司的企业文件结构平台(Enterprise File Fabric™),该平台提供了一种软件解决方案,可通过全局文件系统集成和统一文件存储与对象存储。
配置
企业文件结构平台后端的初始设置需要从企业文件结构平台获取一个令牌,你需要在浏览器中完成此操作。rclone config
命令会引导你完成整个过程。
以下是一个如何创建名为 remote
的远程存储的示例。首先运行:
rclone config
这将引导你完成一个交互式的设置过程:
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
[snip]
XX / Enterprise File Fabric
\ "filefabric"
[snip]
Storage> filefabric
** See help for filefabric backend at: https://rclone.cn/filefabric/ **
URL of the Enterprise File Fabric to connect to
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Storage Made Easy US
\ "https://storagemadeeasy.com"
2 / Storage Made Easy EU
\ "https://eu.storagemadeeasy.com"
3 / Connect to your Enterprise File Fabric
\ "https://yourfabric.smestorage.com"
url> https://yourfabric.smestorage.com/
ID of the root folder
Leave blank normally.
Fill in to make rclone start with directory of a given ID.
Enter a string value. Press Enter for the default ("").
root_folder_id>
Permanent Authentication Token
A Permanent Authentication Token can be created in the Enterprise File
Fabric, on the users Dashboard under Security, there is an entry
you'll see called "My Authentication Tokens". Click the Manage button
to create one.
These tokens are normally valid for several years.
For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens
Enter a string value. Press Enter for the default ("").
permanent_token> xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Remote config
Configuration complete.
Options:
- type: filefabric
- url: https://yourfabric.smestorage.com/
- permanent_token: xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
配置完成后,你可以像这样使用 rclone
:
列出企业文件结构平台顶层的目录
rclone lsd remote:
列出企业文件结构平台中的所有文件
rclone ls remote:
将本地目录复制到企业文件结构平台中名为 backup
的目录
rclone copy /home/source remote:backup
修改时间和哈希值
企业文件结构平台允许将文件的修改时间精确设置到 1 秒。这些修改时间将用于检测对象是否需要同步。
目前,企业文件结构平台不支持任何数据哈希。
受限文件名字符
默认的受限字符集 将被替换。
无效的 UTF-8 字节也将被 替换,因为它们不能用于 JSON 字符串。
空文件
企业文件结构平台不支持空文件。因此,rclone 会将空文件作为一个空格上传,其 MIME 类型为 application/vnd.rclone.empty.file
,具有该 MIME 类型的文件将被视为空文件。
根文件夹 ID
你可以为 rclone 设置 root_folder_id
。这是 rclone 视为企业文件结构平台根目录的目录(由其 文件夹 ID
标识)。
通常,你可以留空此选项,rclone 会自行确定要使用的正确根目录。
但是,你可以设置此选项以将 rclone 限制在特定的文件夹层级中。
为此,你需要找到希望 rclone 显示的目录的 文件夹 ID
。这些 ID 不会在 Web 界面中显示,但你可以使用 rclone lsf
来查找它们,例如
$ rclone lsf --dirs-only -Fip --csv filefabric:
120673758,Burnt PDFs/
120673759,My Quick Uploads/
120673755,My Syncs/
120673756,My backups/
120673757,My contacts/
120673761,S3 Storage/
“S3 Storage” 的 ID 为 120673761
。
标准选项
以下是针对 FileFabric(企业文件结构平台)的标准选项。
–filefabric-url
要连接的企业文件结构平台的 URL。
属性:
- 配置项:url
- 环境变量:RCLONE_FILEFABRIC_URL
- 类型:字符串
- 是否必需:是
- 示例:
- “https://storagemadeeasy.com”
- 美国的 Storage Made Easy
- “https://eu.storagemadeeasy.com”
- 欧洲的 Storage Made Easy
- “https://yourfabric.smestorage.com”
- 连接到您自己的企业文件结构平台
- “https://storagemadeeasy.com”
–filefabric-root-folder-id
根文件夹的 ID。
通常留空即可。
若要让 rclone 从指定 ID 的目录开始,请填写此项。
属性:
- 配置项:root_folder_id
- 环境变量:RCLONE_FILEFABRIC_ROOT_FOLDER_ID
- 类型:字符串
- 是否必需:否
–filefabric-permanent-token
永久认证令牌。
可以在企业文件结构平台中创建永久认证令牌,在用户仪表盘的安全设置下,您会看到一个名为“我的认证令牌”的条目。点击“管理”按钮即可创建。
这些令牌通常有效期为数年。
更多信息请参考:https://docs.storagemadeeasy.com/organisationcloud/api-tokens
属性:
- 配置项:permanent_token
- 环境变量:RCLONE_FILEFABRIC_PERMANENT_TOKEN
- 类型:字符串
- 是否必需:否
高级选项
以下是针对 FileFabric(企业文件结构平台)的高级选项。
–filefabric-token
会话令牌。
这是 rclone 缓存到配置文件中的会话令牌,通常有效期为 1 小时。
请勿手动设置此值,rclone 会自动设置。
属性:
- 配置项:token
- 环境变量:RCLONE_FILEFABRIC_TOKEN
- 类型:字符串
- 是否必需:否
–filefabric-token-expiry
令牌过期时间。
请勿手动设置此值,rclone 会自动设置。
属性:
- 配置项:token_expiry
- 环境变量:RCLONE_FILEFABRIC_TOKEN_EXPIRY
- 类型:字符串
- 是否必需:否
–filefabric-version
从文件结构平台读取的版本信息。
请勿手动设置此值,rclone 会自动设置。
属性:
- 配置项:version
- 环境变量:RCLONE_FILEFABRIC_VERSION
- 类型:字符串
- 是否必需:否
–filefabric-encoding
后端的编码方式。
更多信息请参阅 概述中的编码部分。
属性:
- 配置项:encoding
- 环境变量:RCLONE_FILEFABRIC_ENCODING
- 类型:编码方式
- 默认值:斜杠、删除符、控制字符、无效 UTF - 8、点号
–filefabric-description
远程存储的描述信息。
属性:
- 配置项:description
- 环境变量:RCLONE_FILEFABRIC_DESCRIPTION
- 类型:字符串
- 是否必需:否