# FTP

## 入门指南

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

**平均传输速度：** 30秒\~2分钟，根据数据质量可能会有所不同

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

\*\*推荐：\*\*小型、中型和大型认证机构，其认证数量在20到50,000之间

***

### 先决条件

1. 设置一个活动的FTP连接
2. 在您的FTP服务器上，使用您的[格式化数据](/accreditation-bodies/ab-zh/data-management/import-certification/certification-file-templates.md)上传文件（.xlsx或XML）
3. 定义你想从服务器检索的文件名

***

### 如何通过FTP导入认证数据

1. 转到 **'导入认证'** 页面
2. 选择 **'FTP'** 作为您的数据导入方法
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连接成功后，点击 '**保存并继续'** 按钮
7. 在下一个屏幕上，添加您想从FTP服务器获取的文件名
   * 如果FTP目录中有多个文件遵循相同的命名约定，您可以选择勾选 **'通配符'** 选项

     <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>例子：</p><p>文件名是 <strong>certs</strong> ，并且已经勾选了 '通配符' 选项。</p><p>系统将在目录中查找以下文件名：</p><ul><li><strong>certs</strong>_1.xlsx</li><li>2_<strong>certs</strong>.xlsx</li><li>3_<strong>certs</strong>_4.xlsx</li></ul></div>

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/accreditation-bodies/ab-zh/data-management/import-certification/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.
