Files.com

Files.com

Files.com 是一项云存储服务,它提供了一种安全且便捷的方式来存储和共享文件。

filescom 的初始设置需要使用你的 Files.com 账户进行身份验证。你可以通过提供你的站点子域名、用户名和密码来完成此操作。或者,你也可以使用来自 Files.com 的 API 密钥进行身份验证。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

Enter name for new remote.
name> remote

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / Files.com
  \ "filescom"
[snip]
Storage> filescom

Option site.
Your site subdomain (e.g. mysite) or custom domain (e.g. myfiles.customdomain.com)
Enter a value. Press Enter to leave empty.
site> mysite

Option username.
The username used to authenticate with Files.com.
Enter a value. Press Enter to leave empty.
username> user

Option password.
The password used to authenticate with Files.com.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:

Edit advanced config?
y) Yes
n) No (default)
y/n> n

Configuration complete.
Options:
- type: filescom
- site: mysite
- username: user
- password: *** ENCRYPTED ***
Keep this "remote" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y

配置完成后,你就可以使用 rclone 了。

查看顶级目录中的所有文件:

rclone lsf remote:

在根目录下创建一个新目录:

rclone mkdir remote:dir

递归列出目录内容:

rclone ls remote:

/home/local/directory 同步到远程目录,并删除该目录中多余的文件。

rclone sync --interactive /home/local/directory remote:dir

标准选项

以下是 Files.com 特有的标准选项。

–filescom-site

你的站点子域名(例如 mysite)或自定义域名(例如 myfiles.customdomain.com)。

属性:

  • 配置项:site
  • 环境变量:RCLONE_FILESCOM_SITE
  • 类型:字符串
  • 是否必需:否

–filescom-username

用于与 Files.com 进行身份验证的用户名。

属性:

  • 配置项:username
  • 环境变量:RCLONE_FILESCOM_USERNAME
  • 类型:字符串
  • 是否必需:否

–filescom-password

用于与 Files.com 进行身份验证的密码。

注意:输入此选项的值必须进行加密处理 - 请参阅 rclone obscure

属性:

  • 配置项:password
  • 环境变量:RCLONE_FILESCOM_PASSWORD
  • 类型:字符串
  • 是否必需:否

高级选项

以下是 Files.com 特有的高级选项。

–filescom-api-key

用于与 Files.com 进行身份验证的 API 密钥。

属性:

  • 配置项:api_key
  • 环境变量:RCLONE_FILESCOM_API_KEY
  • 类型:字符串
  • 是否必需:否

–filescom-encoding

后端的编码方式。

有关更多信息,请参阅 概述中的编码部分

属性:

  • 配置项:encoding
  • 环境变量:RCLONE_FILESCOM_ENCODING
  • 类型:编码
  • 默认值:Slash,BackSlash,Del,Ctl,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot

–filescom-description

远程存储的描述。

属性:

  • 配置项:description
  • 环境变量:RCLONE_FILESCOM_DESCRIPTION
  • 类型:字符串
  • 是否必需:否