> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/en/administration-and-backups/how-to-use-backup-storage.md).

# 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**
