{"id":16939779,"url":"https://github.com/fd0/split","last_synced_at":"2025-08-18T05:48:48.014Z","repository":{"id":136285902,"uuid":"193210323","full_name":"fd0/split","owner":"fd0","description":"Split large files into smaller ones using deterministic Content Defined Chunking","archived":false,"fork":false,"pushed_at":"2019-06-25T18:30:28.000Z","size":6,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T19:21:47.901Z","etag":null,"topics":["cdc","chunking","data","split"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fd0.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":"2019-06-22T08:27:22.000Z","updated_at":"2024-06-21T00:08:13.000Z","dependencies_parsed_at":"2023-04-26T06:48:56.917Z","dependency_job_id":null,"html_url":"https://github.com/fd0/split","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fd0/split","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fd0%2Fsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fd0%2Fsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fd0%2Fsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fd0%2Fsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fd0","download_url":"https://codeload.github.com/fd0/split/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fd0%2Fsplit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270951254,"owners_count":24674006,"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":["cdc","chunking","data","split"],"created_at":"2024-10-13T21:05:29.483Z","updated_at":"2025-08-18T05:48:47.961Z","avatar_url":"https://github.com/fd0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Split large files into smaller ones using the same Content Defined Chunking\nalgorithm the [restic][1] backup program uses.\n\nBuild (using Go \u003e= 1.11):\n\n    $ go build\n\nSample usage:\n\n    $ ./split --verbose --output /tmp --input /tmp/data\n    next chunk offset 0, 814244 bytes written to /tmp/split-000\n    next chunk offset 814244, 1649886 bytes written to /tmp/split-001\n    next chunk offset 2464130, 3332485 bytes written to /tmp/split-002\n    next chunk offset 5796615, 1996103 bytes written to /tmp/split-003\n    [...]\n    next chunk offset 101940538, 700441 bytes written to /tmp/split-069\n    next chunk offset 102640979, 533829 bytes written to /tmp/split-070\n    next chunk offset 103174808, 537761 bytes written to /tmp/split-071\n    next chunk offset 103712569, 1145031 bytes written to /tmp/split-072\n    wrote 104857600 bytes to 73 files\n\nUsing `cat`, we can put the file back together (and use `sh256sum` to verify it's the same data):\n\n    $ cat /tmp/split-* | sha256sum\n    66b9d2c5de34170b93f387988a80fb600717da5e437dcc4da1025343fb9019a1  -\n\n    $ sha256sum /tmp/data\n    66b9d2c5de34170b93f387988a80fb600717da5e437dcc4da1025343fb9019a1  /tmp/data\n\nCheck out the help for other options:\n\n    $ ./split -h\n    Usage of split:\n      -i, --input file     Read from file instead of stdin\n      -u, --max-size n     Set maximal chunk size to n bytes (default 8388608)\n      -l, --min-size n     Set minimal chunk size to n bytes (default 524288)\n      -o, --output dir     Write files to directory dir instead of the current directory (default \".\")\n      -p, --polynomial p   Use polynomial p for splitting (hex notation, no prefix) (default \"3DA3358B4DC173\")\n      -t, --template s     Use s as the (printf-style) template for output files (default \"split-%03d\")\n      -v, --verbose        Be verbose\n\nThe library used for this program is https://github.com/restic/chunker\n\nIf you're interested in the mathematical foundation for Content Defined Chunking with [Rabin Fingerprints][2], head over to [the restic blog][3] which has an [introductory article][4].\n\n[1]: https://restic.net\n[2]: https://en.wikipedia.org/wiki/Rabin_fingerprint\n[3]: https://restic.net/blog\n[4]: https://restic.net/blog/2015-09-12/restic-foundation1-cdc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffd0%2Fsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffd0%2Fsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffd0%2Fsplit/lists"}