{"id":18492909,"url":"https://github.com/graphprotocol/ipfs-mgm","last_synced_at":"2025-04-08T21:31:36.505Z","repository":{"id":196638548,"uuid":"693090773","full_name":"graphprotocol/ipfs-mgm","owner":"graphprotocol","description":"IPFS cli for content syncing","archived":false,"fork":false,"pushed_at":"2024-07-16T20:38:52.000Z","size":59,"stargazers_count":3,"open_issues_count":3,"forks_count":9,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-01T23:18:13.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-18T10:28:23.000Z","updated_at":"2024-05-10T09:44:36.000Z","dependencies_parsed_at":"2023-09-26T18:36:01.780Z","dependency_job_id":"17711b25-6c2e-4f7a-b85a-a52d8adfbcb5","html_url":"https://github.com/graphprotocol/ipfs-mgm","commit_stats":null,"previous_names":["graphprotocol/ipfs-mgm"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fipfs-mgm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fipfs-mgm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fipfs-mgm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fipfs-mgm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphprotocol","download_url":"https://codeload.github.com/graphprotocol/ipfs-mgm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247931451,"owners_count":21020238,"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-11-06T13:11:37.577Z","updated_at":"2025-04-08T21:31:32.150Z","avatar_url":"https://github.com/graphprotocol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipfs-mgm\n\nScript to manage the IPFS files. It can be used to sync the CID's between two nodes\n\n## Install\n\n### Manually\n\n```bash\ngo install cmd/cli/ipfs-mgm.go\n```\n\n## Usage\n#### View help:\n\n```bash\nipfs-mgm\n```\n\nor\n\n```bash\nipfs-mgm --help\n```\n\n##### View subcommand help:\n\n```bash\nipfs-mgm sync --help\n```\n\n#### Transfer all files from one IPFS node to another:\n\n```bash\nipfs-mgm sync -s \u003cSOURCE URL\u003e -d \u003cDESTINATION URL\u003e\n```\n\n#### Transfer only specific files from one IPFS node to another:\n\n```bash\nipfs-mgm sync -s \u003cSOURCE URL\u003e -d \u003cDESTINATION URL\u003e -f \u003cFILE\u003e\n```\n\nIn this case, \u003cFILE\u003e has to be a file with one IPFS hash per line for each file that should be synced from the `-s` node to the `-d` node.\n\n*Example*:\n\n```text\nQmZaHasmzsb1ReQHpCLUoXqqWchTgBrtRvbg7TqsUZXSuU\nbafkreib47hfjivabsgaly3mupfqjvdywygfwnnoizlwg7wj2we3yh4t6fe\nQmbyzKCFE6d22vnRVekN2Z5PT8Ha1g3TSku8UH5KBp2cTY\nQmfNueFQg19hyBtCRUPJRpxVtdwtp8cgWpuRoQpRP3n9st\n```\n\n## Docker\n\nThe easiest way is to use the built docker image\n\n```bash\ndocker run -it ghcr.io/graphprotocol/ipfs-mgm sync --help\n```\n\n## TODO:\n\n- [ ] Implement async calls by creating a worker queue in batches\n- [ ] Check for exisging IPFS files on destination to not try to sync twice. It's not critical due to IPFS immutability but critical to decrease the load\n- [ ] Control the sync batches with a pause between them to decrease the load on destination\n- [x] Add directory support for sync operation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fipfs-mgm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphprotocol%2Fipfs-mgm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fipfs-mgm/lists"}