{"id":19955398,"url":"https://github.com/jorben/osd-tool","last_synced_at":"2026-01-12T07:56:22.460Z","repository":{"id":131420964,"uuid":"611623001","full_name":"jorben/osd-tool","owner":"jorben","description":"一个按目录批量上传和下载的对象存储工具，支持腾讯云cos、阿里云oss","archived":false,"fork":false,"pushed_at":"2024-03-19T11:05:53.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T22:29:32.098Z","etag":null,"topics":["aliyun","aliyun-oss","cos","go","golang","osd-tool","oss","qcloud","qcloud-cos"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jorben.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-03-09T07:52:36.000Z","updated_at":"2024-11-22T06:33:58.000Z","dependencies_parsed_at":"2024-03-19T12:25:51.145Z","dependency_job_id":"34281976-d815-4419-b3db-9fdf8aefe5e7","html_url":"https://github.com/jorben/osd-tool","commit_stats":null,"previous_names":["jorben/osd-tool","haywolf/osd-tool"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jorben/osd-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorben%2Fosd-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorben%2Fosd-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorben%2Fosd-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorben%2Fosd-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorben","download_url":"https://codeload.github.com/jorben/osd-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorben%2Fosd-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320256,"owners_count":24068527,"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-07-27T02:00:11.917Z","response_time":82,"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":["aliyun","aliyun-oss","cos","go","golang","osd-tool","oss","qcloud","qcloud-cos"],"created_at":"2024-11-13T01:27:15.351Z","updated_at":"2026-01-12T07:56:22.454Z","avatar_url":"https://github.com/jorben.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osd-tool\n\n腾讯云(cos)或阿里云(oss)的对象存储 目录上传、下载工具，当前只是简单的全量上传和下载，用于跨服务商迁移文件、跨设备迁移文件、内容备份等场景\n\n[![Go](https://github.com/jorben/osd-tool/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/jorben/osd-tool/actions/workflows/build.yml)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/jorben/osd-tool)](https://github.com/jorben/osd-tool/releases)\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/jorben/osd-tool)](https://github.com/jorben/osd-tool/blob/master/go.mod)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg)](http://copyfree.org)\n[![Go Report](https://goreportcard.com/badge/github.com/jorben/osd-tool)](https://goreportcard.com/report/github.com/jorben/osd-tool)\n\n## 用法\n\n```shell\n# 有golang环境时可以通过go install下载安装，或者直接下载当前项目发布的包\ngo install github.com/jorben/osd-tool@latest\n\n# 首次使用时候可以通过init命令初始化配置文件模版，默认生成config.yaml文件\nosd-tool init\n\n# 配置好相应的配置内容...\n\n# 把配置文件中配置的upload list上传到对象存储\nosd-tool upload\n\n# 把配置文件中配置的download list下载到本地\nosd-tool download\n\n# 升级当前程序\nosd-tool --upgrade\n```\n\n### 存储器类型配置\n\n```yaml\n# 存储对象 cos 或者 oss （分别是腾讯云和阿里云）\n# 下方需要对应配置 cos或oss的密钥等信息\nstorage: cos\n```\n\n### 上传配置\n\n在配置文件中配置要上传的目录和目标路径，source为本地路径，dest为cos路径。比如下方配置将会把本地的sync1目录下的文件及文件夹上传到COS的/syncTest/dir1目录下：\n\n```yaml\nupload:\n  list:\n    - source: /Users/Jorben/Downloads/sync1\n      dest: /syncTest/dir1\n    - source: /Users/Jorben/Downloads/sync2\n      dest: /syncTest/2dir\n  ignore: [ .git, .DS_Store ] # 需要忽略的文件和文件夹\n```\n\n### 下载配置\n\n在配置文件中配置要下载的目录和目标路径，source为cos路径，dest为本地路径。比如下方配置将会把cos上的syncTest目录下的文件及子目录下载到本地的downloadTest目录下：\n\n```yaml\ndownload:\n  list:\n    - source: /syncTest\n      dest: /Users/Jorben/Downloads/downloadTest\n```\n\n### 对象存储配置\n\n```yaml\nosd:\n  secret_id:\n  secret_key:\n  bucket: # 存储桶的名称，注意cos的存储桶名称带有APPID，\n  region:  # 替换成存储桶的区域代码，比如Oss的cn-shenzhen，比如Cos的ap-guangzhou\n  timeout: 300 #单位：秒\n```\n\n## License\nReleased under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorben%2Fosd-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorben%2Fosd-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorben%2Fosd-tool/lists"}