{"id":18770024,"url":"https://github.com/yaroslaff/ncdu-compare","last_synced_at":"2025-04-13T07:31:54.146Z","repository":{"id":57445227,"uuid":"443013335","full_name":"yaroslaff/ncdu-compare","owner":"yaroslaff","description":"Compare ncdu export files and show difference to find what took most space since previous measurement","archived":false,"fork":false,"pushed_at":"2024-11-06T22:03:52.000Z","size":14,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T23:18:28.939Z","etag":null,"topics":["cleanup","compare","comparison","comparison-tool","diff","difference","disk-space","disk-space-analyzer","disk-usage","du","filesize","ncdu","sysadmin","sysadmin-tool","system-admin","system-administration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaroslaff.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}},"created_at":"2021-12-30T08:25:56.000Z","updated_at":"2024-11-06T22:03:55.000Z","dependencies_parsed_at":"2024-11-06T23:18:30.384Z","dependency_job_id":"5a35f003-194c-457b-a923-9de769b8000a","html_url":"https://github.com/yaroslaff/ncdu-compare","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"840aad2194b67ce64390d345b76359a878e67824"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fncdu-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fncdu-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fncdu-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fncdu-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/ncdu-compare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223573787,"owners_count":17167379,"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","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":["cleanup","compare","comparison","comparison-tool","diff","difference","disk-space","disk-space-analyzer","disk-usage","du","filesize","ncdu","sysadmin","sysadmin-tool","system-admin","system-administration"],"created_at":"2024-11-07T19:17:44.228Z","updated_at":"2024-11-07T19:17:45.444Z","avatar_url":"https://github.com/yaroslaff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ncdu-compare\nCompare ncdu export files and shows differences to find out what consumes most space.\n\n## Installation\n\n~~~\n# from pypi\npip3 install ncdu-compare\n\n# ... or from git\npip3 install git+https://github.com/yaroslaff/ncdu-compare.git\n~~~\n\n## Example usage\n\nCreate ncdu snapshots with command:\n\n~~~bash\n# now\n$ ncdu /some/path/ -0o /tmp/snapshot-1\n\n# after some time, e.g. daily\n$ ncdu /some/path/ -0o /tmp/snapshot-2\n~~~\n\nCompare it\n~~~bash\n$ ncdu-compare /tmp/snapshot-1 /tmp/snapshot-2 | sort -n | tail -n 5\n~~~\n\nExample real output (first number is growth in bytes for `sort -n`, may be negative):\n~~~\n2125273220 DIR /home/username/public_html/client-portal/storage/framework/cache (18.96G =\u003e 21.09G (2.13G))\n2125273220 DIR /home/username/public_html/client-portal/storage/framework/cache/data (18.96G =\u003e 21.09G (2.13G))\n2125741830 DIR /home/username/public_html/client-portal/storage/framework (18.97G =\u003e 21.10G (2.13G))\n2153400708 DIR /home/username/public_html/client-portal/storage (19.29G =\u003e 21.44G (2.15G))\n3134727368 DIR /home/username/public_html/client-portal/public/aaa/customer_folder (36.76G =\u003e 39.90G (3.13G))\n3146881276 DIR /home/username/public_html/client-portal/public/aaa (52.62G =\u003e 55.77G (3.15G))\n4649987199 DIR /home/username/public_html/client-portal/public (158.13G =\u003e 162.78G (4.65G))\n6803387907 DIR /home/username/public_html/client-portal (177.97G =\u003e 184.78G (6.80G))\n6805286889 DIR /home/username/public_html (179.92G =\u003e 186.73G (6.81G))\n~~~\n\n## Invalid unicode filenames\nSometimes ncdu can produce invalid JSON files (see https://dev.yorhel.nl/ncdu/jsonfmt). When loading ncdu files ncdu-compare uses (default) 'replace' mode to handle unicode errors. You can  override it with `-e`/`--error` options, e.g. `--error ignore`. More at python doc to [open()](https://docs.python.org/3/library/functions.html#open).\n\n## See also\n\nMy other project [Plus Size](https://github.com/yaroslaff/pluss) to detect changes in short-time (e.g. fast growing log files)\n\n[ncdu-diff](https://github.com/lilydjwg/ncdu-diff) C + Python ncdu fork that can compare and diff results\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fncdu-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Fncdu-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fncdu-compare/lists"}