# Working with FTP Repository

How to download and upload files to one of the SpaceCore services - FTP storage.

Installing lFTP for Ubuntu/Debian:

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

Installation of lFTP for CentOS:

```
yum -y install lftp
```

Load the folder into the repository:

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

Download the folder from the repository:

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

Load File:

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

Download the file:

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

{% hint style="info" %}
**SpacecoreID** — Username.\
**Pass** — Password.\
**Backup.s1.fsn.spacecore.pro** — Server\
**21** — Port
{% endhint %}

> Network speed in **FTP** storage is **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/en/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.
