---
title: Determine available disk space
description: "**Determine available disk space** You can see how much disk space you have available in the client area. There is an update about every 10 minutes. # Via SFTP To determine in a script how much available disk space you…"
url: "https://www.hyyat.com/en/knowledgebase/determine-available-disk-space/"
updated: "2026-10-21"
category: Storage Box
---

# Determine available disk space

**Determine available disk space**

You can see how much disk space you have available in the client area. There is an update about every 10 minutes.

# Via SFTP

To determine in a script how much available disk space you have, use the program "sftp" in Linux-based systems:

```
echo "df"     | sftp <username>@<username>.your-storagebox.de
echo "df -h"  | sftp <username>@<username>.your-storagebox.de
echo "df -hi" | sftp <username>@<username>.your-storagebox.de
```

# Via SSH

As an alternative, you can also use the extended SSH service to see the disk usage:

```
ssh -p23 uXXXXX@uXXXXX.your-storagebox.de df -h
Filesystem      Size    Used   Avail Capacity  Mounted on
uXXXXX          100G     17M    100G     0%    /home
```

You can use the argument -m to get the output in megabytes:

```
ssh -p23 uXXXXX@uXXXXX.your-storagebox.de df -m
Filesystem   1M-blocks Used  Avail Capacity  Mounted on
uXXXXX          102400    0 102399     0%    /home
```

# Via LFTP

Under certain circumstances, lftp can return incorrect values; therefore it is better to use the variant with sftp. Below is the variant with lftp:

```
# apt-get install lftp
# echo du -hs .  \
| lftp -u <username>,<password> BACKUPSERVER
```

You can also embed the command in Tartarus using a hook. To do this, insert the following lines into the Tartarus configuration:

```
TARTARUS_POST_PROCESS_HOOK() {
echo "du" | /usr/bin/lftp -u "$STORAGE_FTP_USER,$STORAGE_FTP_PASSWORD" "$STORAGE_FTP_SERVER" | awk -v LIMIT=100 '$2=="." {print ((LIMIT*1024*1024)-$1)/1024 " MiB backup space remaining"}'
}
```

## client area

In order to always have a reliable value, we recommend using the client logic to display the amount of memory space occupied. You can do this automatically.

مع تحيات فريق عمل **حياه هوست**

**Related service:** [cloud storage space](https://www.hyyat.com/%d8%b5%d9%86%d8%af%d9%88%d9%82-%d8%a7%d9%84%d8%aa%d8%ae%d8%b2%d9%8a%d9%86/) from Hyyat Host, with technical support that replies within 24 hours.

 **Related guides**

- [FAQ](https://www.hyyat.com/knowledgebase/%d8%a7%d9%84%d8%aa%d8%b9%d9%84%d9%8a%d9%85%d8%a7%d8%aa/)
- [Use the storage box as an external hard drive](https://www.hyyat.com/knowledgebase/%d8%a7%d8%b3%d8%aa%d8%ae%d8%af%d8%a7%d9%85-%d8%b5%d9%86%d8%af%d9%88%d9%82-%d8%a7%d9%84%d8%aa%d8%ae%d8%b2%d9%8a%d9%86-%d9%83%d9%87%d8%a7%d8%b1%d8%af-%d8%ae%d8%a7%d8%b1%d8%ac%d9%8a/)
- [What is a storage box?](https://www.hyyat.com/knowledgebase/%d9%85%d8%a7%d9%87%d9%88-%d8%b5%d9%86%d8%af%d9%88%d9%82-%d8%a7%d9%84%d8%aa%d8%ae%d8%b2%d9%8a%d9%86-%d8%9f/)
- [View the contents of the storage box via the browser](https://www.hyyat.com/knowledgebase/%d8%b9%d8%b1%d8%b6-%d9%85%d8%ad%d8%aa%d9%88%d9%8a-%d8%b5%d9%86%d8%af%d9%88%d9%82-%d8%a7%d9%84%d8%aa%d8%ae%d8%b2%d9%8a%d9%86-%d8%b9%d9%86-%d8%b7%d8%b1%d9%8a%d9%82-%d8%a7%d9%84%d9%85%d8%aa%d8%b5%d9%81/)

**Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Web Hosting](https://www.hyyat.com/en/hosting/)[Saudi Hosting](https://www.hyyat.com/en/saudi-hosting/)
