{"id":37194247,"url":"https://github.com/laincloud/backupd","last_synced_at":"2026-01-14T22:34:41.990Z","repository":{"id":57585691,"uuid":"57270492","full_name":"laincloud/backupd","owner":"laincloud","description":"LAIN's component, backup lain app's volume directory","archived":false,"fork":false,"pushed_at":"2018-08-28T10:09:52.000Z","size":799,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-20T17:40:20.838Z","etag":null,"topics":["layer1"],"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/laincloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-28T04:18:15.000Z","updated_at":"2019-05-20T23:19:14.000Z","dependencies_parsed_at":"2022-09-10T09:20:59.396Z","dependency_job_id":null,"html_url":"https://github.com/laincloud/backupd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/laincloud/backupd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laincloud%2Fbackupd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laincloud%2Fbackupd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laincloud%2Fbackupd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laincloud%2Fbackupd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laincloud","download_url":"https://codeload.github.com/laincloud/backupd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laincloud%2Fbackupd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["layer1"],"created_at":"2026-01-14T22:34:41.220Z","updated_at":"2026-01-14T22:34:41.970Z","avatar_url":"https://github.com/laincloud.png","language":"Go","readme":"# backupd\n[![Build Status](https://travis-ci.org/laincloud/backupd.svg?branch=master)](https://travis-ci.org/laincloud/backupd) [![MIT license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)\n\nVolume backup service for Lain\n\n## 介绍\n\nBackupd主要是为Lain集群上的app提供备份功能。使用者可在lain.yaml中配置volume的备份属性，对volume进行定时备份。\n\n## 整体设计\n\n分两层，controller和daemon。controller负责任务的获取和记录等，daemon负责任务的执行。对于用户而言，daemon是隐藏的组件，所有的备份相关请求都要走controller。\n\ndaemon以定时调度器为核心，即`cron-engine`。该模块具有定时调度的功能，并会把调度的结果post给指定的地址。engine所支持的任务类型，以插件的形式注册到engine上。\n\n对volume的备份功就属于`cron-engine`的一个插件，我们通过api，把定时任务提交给`cron-engine`, engine就会根据设定在指定时间执行某插件。\n\ncontroller 从lainlet中获取最新的配置并解析出备份任务，将任务发送给各个backupd-daemon。此外，还负责把一些查询的请求(如备份结果等)代理给某些daemon获取结果。\n\n大体结构如下图:\n\n![design](backupd-design.png)\n\n[controller/README.md](关于controller的更多内容)\n\n\n## 编译和运行\n\n### 编译\n\n**需要环境: go1.5+**\n```sh\ngo build -o backupd\n```\n\n### 运行\n\n**需要环境: lainlet, moosefs**\n\n```sh\nbackupd --help 查看运行参数\n```\n\n## License\n\nBackupd is released under the [MIT license](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaincloud%2Fbackupd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaincloud%2Fbackupd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaincloud%2Fbackupd/lists"}