# FTP

## 入门

FTP允许您每24小时从服务器批量上传数据。这适用于Excel和XML格式。用户需要设置一个活动的FTP连接和要从服务器检索的文件名。

**平均传输速度：** 30秒\~2分钟，可能因数据质量而变化。

**可接受的格式：** XLSX和XML

**建议使用：** 从20到50,000个认证的小型、中型和大型认证机构。

***

### 先决条件

1. [设置活动FTP连接](/certification-bodies/cb-zh/data-management/data-import/ftp-settings.md#setting-up-your-ftp-connection-settings)
2. *在你的FTP服务器上*，使用[格式化数据](/certification-bodies/cb-zh/data-management/data-import/certification-templates.md)上传文件（.xlsx或XML）。
3. [定义要从服务器检索的文件名](/certification-bodies/cb-zh/data-management/data-import/ftp-settings.md#define-the-filenames)。

***

### 通过FTP导入数据的方法

1. 进入**数据导入**页面。
2. 选择\*\*'FTP'\*\*作为您的数据导入方法。

<figure><img src="https://github.com/QualityTrade/iaf-docs-certification-bodies-zh/blob/main/.gitbook/assets/image%20(5).png" alt=""><figcaption></figcaption></figure>

3. 如果尚未添加FTP连接，您将被要求设置它。
4. 填写或编辑以下文本字段：
   * FTP访问状态
     * <mark style="color:green;">**活动**</mark>，*持续从FTP中获取/下载文件*
     * <mark style="color:red;">**停用**</mark>，*停止从FTP中获取/下载文件*
   * FTP服务器协议
     * **FTP**，*依赖用户名和密码进行身份验证*
     * **SFTP**，*使用SSH密钥进行身份验证，更加安全*
   * 服务器主机
   * 服务器端口
   * 服务器用户名
   * 服务器密码
     * 如果选择了**SFTP**，请添加**私钥**
5. 为了检查FTP是否成功连接，请单击"\*\*测试FTP连接"\*\*按钮。
6. 一旦FTP连接成功，单击"\*\*保存并继续"\*\*按钮。

<figure><img src="https://github.com/QualityTrade/iaf-docs-certification-bodies-zh/blob/main/.gitbook/assets/image%20(6).png" alt=""><figcaption></figcaption></figure>

7. 在下一个屏幕中，添加您想要从FTP服务器获取的文件名。
   * 如果FTP目录中有多个文件需要获取，可以选择\*\*'通配符'\*\*选项，采用一种常见的命名约定。

{% hint style="info" %}
例子：

文件名是**certs**，勾选了"通配符"选项。

然后，系统将在目录中寻找以下文件名：

* **certs**\_1.xlsx
* 2\_**certs**.xlsx
* 3\_**certs**\_4.xlsx
  {% endhint %}

8\. 添加完成后，点击"\*\*获取数据"\*\*按钮。 9. 完成后，流程进入\*\*第2步\*\*，初始化数据验证。 10. 验证通过后，您的数据将成功添加到IAF CertSearch。

了解在导入过程中如何处理错误。


---

# 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/certification-bodies/cb-zh/data-management/data-import/data-import-methods/ftp.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.
