{"id":23644577,"url":"https://github.com/appatalks/gh_disk_space_check","last_synced_at":"2025-08-18T15:05:19.602Z","repository":{"id":246320802,"uuid":"820739814","full_name":"appatalks/gh_disk_space_check","owner":"appatalks","description":"I need an easy to grab snapshot in time of disk space to monitor","archived":false,"fork":false,"pushed_at":"2024-06-28T00:55:45.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T17:17:25.328Z","etag":null,"topics":["disk-usage","enterprise","ghes"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appatalks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-27T05:00:24.000Z","updated_at":"2025-03-05T02:10:34.000Z","dependencies_parsed_at":"2024-06-27T06:30:10.695Z","dependency_job_id":"2252910e-39b1-48a5-9e50-9480ad8fdbc2","html_url":"https://github.com/appatalks/gh_disk_space_check","commit_stats":null,"previous_names":["appatalks/gh_disk_space_check"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appatalks/gh_disk_space_check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Fgh_disk_space_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Fgh_disk_space_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Fgh_disk_space_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Fgh_disk_space_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appatalks","download_url":"https://codeload.github.com/appatalks/gh_disk_space_check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Fgh_disk_space_check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271011814,"owners_count":24684416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disk-usage","enterprise","ghes"],"created_at":"2024-12-28T12:31:27.374Z","updated_at":"2025-08-18T15:05:19.407Z","avatar_url":"https://github.com/appatalks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Check Disk Space Script \u003cbr\u003e for GitHub Enterprise Server (GHES) \n\n\u003e [!NOTE]\n\u003e #### This script is independently maintained and is not [supported](https://docs.github.com/en/enterprise-server@3.13/admin/monitoring-managing-and-updating-your-instance/monitoring-your-instance/setting-up-external-monitoring) by GitHub.\n\nUse (`disk_check.sh`) to quickly monitor disk space usage on a GitHub Enterprise Server ([GHES](https://docs.github.com/en/enterprise-server@3.13/admin/all-releases)).\n\n## Features\n\n- Displays the server time at run time.\n- Provides filesystem and inode information.\n- Reports the largest directories (to 5 levels deep).\n- Reports the largest files and the largest files older than 30 days.\n- Excludes some directories from scans, ie. (`/proc` and `/data/user/docker/overlay2`).\n\n## Getting Started\n\n### One-Liner to Run the Script\n\nYou can run the script directly from GitHub without cloning the repository. Use the following one-liner:\n\n```sh\ntime bash \u003c(curl -sL https://github.com/appatalks/gh_disk_space_check/raw/main/disk_check.sh)\n```\n\n### Optional add to ```cron```\n\nTo run the script every ```15 minutes``` as the \"**admin**\" user, follow these steps:\n\n1. Download the script to `/home/admin`:\n\n    ```sh\n    curl -sL https://github.com/appatalks/gh_disk_space_check/raw/main/disk_check.sh -o /home/admin/disk_check.sh\n    chmod +x /home/admin/disk_check.sh\n    ```\n\n2. Open the crontab for the ```admin``` user:\n\n    ```sh\n    crontab -e\n    ```\n\n3. Add the following line to the crontab:\n\n    ```sh\n    */15 * * * * bash /home/admin/disk_check.sh \u003e\u003e /home/admin/disk_check.log 2\u003e\u00261\n    ```\n\n    This will run the script every 15 minutes and append the output to `/home/admin/disk_check.log`. \u003cbr\u003e\n    Remeber to remove from cron and purge the log when no longer required. Or risk running out of disk space!!\n\n## Author\n\n- appatalks\n\n## Credit\n\nThis script was adapted from Rackspace's documentation on troubleshooting low disk space for a Linux cloud server:\nhttps://docs.rackspace.com/docs/troubleshooting-low-disk-space-for-a-linux-cloud-server\n\n## License\n\nThis project is licensed under the [GPL-3.0 license](https://github.com/appatalks/gh_disk_space_check/blob/50fff770e07c4b07178ae2939eab82fb45d4f92c/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Fgh_disk_space_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappatalks%2Fgh_disk_space_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Fgh_disk_space_check/lists"}