{"id":14108,"date":"2022-09-27T14:15:16","date_gmt":"2022-09-27T11:15:16","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/%d8%aa%d8%ad%d8%af%d9%8a%d8%af-%d9%85%d8%b3%d8%a7%d8%ad%d8%a9-%d8%a7%d9%84%d9%82%d8%b1%d8%b5-%d8%a7%d9%84%d9%85%d8%aa%d9%88%d9%81%d8%b1%d8%a9\/"},"modified":"2026-10-21T19:00:26","modified_gmt":"2026-10-21T16:00:26","password":"","slug":"determine-available-disk-space","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/determine-available-disk-space\/","title":{"rendered":"Determine available disk space"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Determine available disk space<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can see how much disk space you have available in the client area. There is an update about every 10 minutes.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"via-sftp\">Via SFTP<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">To determine in a script how much available disk space you have, use the program &#8220;sftp&#8221; in Linux-based systems:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>echo \"df\"     | sftp &lt;username&gt;@&lt;username&gt;.your-storagebox.de\necho \"df -h\"  | sftp &lt;username&gt;@&lt;username&gt;.your-storagebox.de\necho \"df -hi\" | sftp &lt;username&gt;@&lt;username&gt;.your-storagebox.de<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"via-ssh\">Via SSH<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">As an alternative, you can also use the extended SSH service to see the disk usage:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ssh -p23 uXXXXX@uXXXXX.your-storagebox.de df -h\nFilesystem      Size    Used   Avail Capacity  Mounted on\nuXXXXX          100G     17M    100G     0%    \/home<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can use the argument <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">-m<\/span> to get the output in megabytes:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ssh -p23 uXXXXX@uXXXXX.your-storagebox.de df -m\nFilesystem   1M-blocks Used  Avail Capacity  Mounted on\nuXXXXX          102400    0 102399     0%    \/home<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"via-lftp\">Via LFTP<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Under certain circumstances, <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">lftp<\/span> can return incorrect values; therefore it is better to use the variant with sftp. Below is the variant with lftp:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code># apt-get install lftp\n# echo du -hs .  \\\n| lftp -u &lt;username&gt;,&lt;password&gt; BACKUPSERVER<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also embed the command in Tartarus using a hook. To do this, insert the following lines into the Tartarus configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>TARTARUS_POST_PROCESS_HOOK() {\necho \"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\"}'\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">client area<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color:#0693e3\" class=\"tadv-color\">\u0645\u0639 \u062a\u062d\u064a\u0627\u062a \u0641\u0631\u064a\u0642 \u0639\u0645\u0644 <strong>\u062d\u064a\u0627\u0647 \u0647\u0648\u0633\u062a<\/strong><\/span><\/p>\n\n<p class=\"hy-rel\"><strong>Related service:<\/strong> <a href=\"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\/\">cloud storage space<\/a> from Hyyat Host, with technical support that replies within 24 hours.<\/p>\n<div class=\"hy-relkb\" style=\"background:#f6f7fb;border-left:4px solid #1dca94;border-radius:10px;padding:14px 18px;margin:28px 0 10px;line-height:1.8\"><strong>Related guides<\/strong><ul style=\"margin:8px 0 6px;padding-left:20px\"><li><a href=\"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a7%d9%84%d8%aa%d8%b9%d9%84%d9%8a%d9%85%d8%a7%d8%aa\/\">FAQ<\/a><\/li><li><a href=\"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\/\">Use the storage box as an external hard drive<\/a><\/li><li><a href=\"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\/\">What is a storage box?<\/a><\/li><li><a href=\"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\/\">View the contents of the storage box via the browser<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>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 &#8220;sftp&#8221; in Linux-based systems: Via SSH As an alternative, you can also [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2815],"doc_tag":[],"class_list":["post-14108","docs","type-docs","status-publish","hentry","doc_category-storag-box"],"year_month":"2026-11","word_count":310,"total_views":"329","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Storage Box","term_url":"https:\/\/www.hyyat.com\/en\/kb\/storag-box\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/14108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=14108"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/14108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=14108"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=14108"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=14108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}