{"id":22911979,"url":"https://github.com/opencoff/go-clone","last_synced_at":"2025-04-01T10:47:44.748Z","repository":{"id":259532036,"uuid":"877465745","full_name":"opencoff/go-clone","owner":"opencoff","description":"concurrent directory compare and clone utility","archived":false,"fork":false,"pushed_at":"2025-03-30T14:57:36.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T15:33:52.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencoff.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":"2024-10-23T17:39:45.000Z","updated_at":"2025-03-30T14:57:39.000Z","dependencies_parsed_at":"2024-10-26T08:57:02.118Z","dependency_job_id":"3ef5b149-b697-4cfe-862c-1cb7daf4d6e7","html_url":"https://github.com/opencoff/go-clone","commit_stats":null,"previous_names":["opencoff/go-clone"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoff","download_url":"https://codeload.github.com/opencoff/go-clone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628418,"owners_count":20808106,"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":[],"created_at":"2024-12-14T04:19:28.414Z","updated_at":"2025-04-01T10:47:44.712Z","avatar_url":"https://github.com/opencoff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-clone - a concurrent directory cloner\n\n## What is this?\n`go-clone` is a tool to clone a directory tree and its contents - preserving metadata (including\nxattr).\n\nIt is like `cp -pr` except it is much faster (uses golang concurrency everywhere possible).\n\n## How do I build it?\nYou need a modern golang toolchain (1.22+):\n\n    git clone https://github.com/opencoff/go-clone\n    cd go-clone\n    make\n\nThe resulting binary `clone` will be in `./bin/$GOOS-$GOARCH/`.\neg if you are building this on Linux for x86\\_64, the binary will be\n`./bin/linux-amd64/clone`.\n\nFor now, `clone` is only supported on Linux, OpenBSD, macOS (darwin). Patches\nfor other platforms welcome.\n\n## Usage with examples\n`clone` supports the following options:\n\n      -c, --concurrency N        Use upto N concurrent CPUs [auto-detect]\n      -n, --dry-run              Show the changes without making them [False]\n      -X, --exclude strings      Excludes files/dirs matching the shell glob pattern\n      -L, --follow-symlinks      Follow symlinks [False]\n      -h, --help                 Show help and exit [False]\n          --ignore-missing       Ignore files that suddenly disappear [False]\n      -p, --progress             Show progress bar [False]\n      -s, --show-stats           Show clone statistics in the end [False]\n      -x, --single-file-system   Don't cross file-system mount points [False]\n      -v, --verbose              Show verbose progress messages [False]\n          --version              Show version info and exit [False]\n\nBy default, clone like other unix tools is quiet; for interactive uses, one\ncan ask to see some statistics or see progress. eg.,\n\n    clone --exclude .zfs -x -s /tank/volume /backup\n\n\n## Technical Details\n`clone` is largely a command line \"wrapper\" around a library that exposes\nthe core functionality [go-fio](https://github.com/opencoff/go-fio).\n\nThat library has functionality for:\n\n- concurrently walking a file system tree - like `os.Walk()` but faster\n- comparing two directory trees and returing their difference\n- cloning a file and its metadata\n- cloning a dir tree and associated metadata\n\nThe `go-fio` library is tested on macOS/darwin and linux. Patches for other OSes\n(especially windows) are welcome. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoff%2Fgo-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-clone/lists"}