# FTP设置

## 入门

在本部分，您将能够管理FTP连接设置和从FTP服务器 [*检索*](#user-content-fn-1)[^1]的文件。

1. [设置活动FTP连接](#setting-up-your-ftp-connection-settings)
2. 定义应从FTP检索的文件
3. 通过FTP *导入数据* 来获取文件
4. 查看FTP导入活动

## 设置您的FTP连接设置

1. 转到 **导入** 页面
2. 从导航选项卡中，点击 **'FTP设置'**
3. 点击 **'编辑'** 按钮

* FTP访问状态
  * <mark style="color:green;">**活动**</mark>，*持续从FTP中检索/下载文件*
  * <mark style="color:red;">**非活动**</mark>，*停止从FTP中检索/下载文件*
* FTP服务器协议
  * **FTP**，*依赖用户名和密码进行身份验证*
  * **SFTP**，*使用SSH密钥进行身份验证，更安全*
* 服务器主机
* 服务器端口
* 服务器用户名
* 服务器密码
  * 如果选择**SFTP**，添加**私钥**

4. 要检查FTP是否成功连接，点击 '**测试FTP连接**' 按钮。
5. 一旦FTP连接成功，点击 **'保存更改'** 按钮。

设置完FTP连接后，下一步是将您想从FTP服务器检索或获取的文件添加到IAF CertSearch。

## 定义文件名

定义或指定文件名是必须的，这样IAF CertSearch才能将您的数据从服务器检索到IAF CertSearch数据库中。

{% hint style="info" %}
**先决条件**

在定义文件名之前，请确保已经将 *包含格式化数据的* 文件上传到FTP服务器。
{% endhint %}

1. 在FTP设置页面，转到 **FTP文件名** 部分
2. 点击 **'添加FTP文件名'** 按钮
3. 在添加FTP文件名的模态框中，添加您要获取的文件名。

{% hint style="warning" %}
确保您的文件名与上传到服务器上的文件名匹配。
{% endhint %}

* 文件名支持以下字符：
  * 字母数字字符：A-z，a-z，0-9
  * 破折号 (-)
  * 下划线 (\_)
  * 空格 ( )
  * 正斜杠，用于支持子文件夹 (/)
  * *示例:* `ab_certs_1.xlm`，`ab_certs_2.xlsx`

4. 如果要添加多个文件名，请点击 '**+ 添加FTP文件名**' 按钮
5. 完成后，点击 **'提交'** 按钮

***

## 从FTP中获取文件

一旦定义了文件，您可以选择：

* 立即 **获取文件**，手动点击 **'获取文件'** 按钮
* 在FTP爬行计划期间 **获取文件**，每天从 **UTC 01:00 am** 开始

#### 规则

* <mark style="color:red;">对文件所做的任何更改都将每24小时更新一次。</mark>
* <mark style="color:red;">如果文件名不匹配，系统将不会上传文件。</mark>
* <mark style="color:red;">如果FTP文件名部分没有文件名，则会跳过获取文件的步骤。</mark>

***

## FTP导入活动

可以查看所有FTP导入活动。

[^1]: 从FTP服务器检索或下载文件的过程


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.iafcertsearch.org/accreditation-bodies/ab-zh/data-management/import-certification/ftp-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
