# Работа с FTP-хранилищем

Установка lFTP для Ubuntu/Debian:

```
apt-get -y install lftp
```

Установка lFTP для CentOS:

```
yum -y install lftp
```

Загрузить папку в **хранилище**:

```
lftp -e 'set ftp:ssl-allow no; mirror -R /this/myfolder; bye;' -u spacecoreID,pass backup.s1.fsn.spacecore.pro:21
```

Скачать папку из **хранилища**:

```
lftp ftp://spacecoreID:pass@backup.s1.fsn.spacecore.pro:21 -e "set ftp:ssl-allow no; mirror /home; quit"
```

Загрузить файл:

```
lftp ftp://spacecoreID:pass@backup.s1.fsn.spacecore.pro:21 -e "set ftp:ssl-allow no; put -O / /root/backup/home.tar.gz; quit"
```

Скачать файл:

```
lftp ftp://spacecoreID:pass@backup.s1.fsn.spacecore.pro:21 -e "set ftp:ssl-allow no; get /backup.zip; quit"
```

{% hint style="info" %}
**SpacecoreID** — Имя пользователя.\
**Pass** — Пароль. \
**Backup.s1.fsn.spacecore.pro** — Сервер. \
**21** — Порт.
{% endhint %}

> Скорость сети в FTP-хранилище составляет **1Gbps**


---

# 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://spacecore.gitbook.io/wiki/administration-and-backups/how-to-use-backup-storage.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.
