{"id":16241574,"url":"https://github.com/tve/btrfs-ship","last_synced_at":"2025-08-14T08:09:36.630Z","repository":{"id":146951401,"uuid":"453453654","full_name":"tve/btrfs-ship","owner":"tve","description":"Copy incremental btrfs snapshots between servers","archived":false,"fork":false,"pushed_at":"2022-07-29T15:25:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T09:52:56.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/tve.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":"2022-01-29T16:33:04.000Z","updated_at":"2022-01-29T16:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b48063da-4fc5-47fb-a7f3-ede6602b8d55","html_url":"https://github.com/tve/btrfs-ship","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tve/btrfs-ship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2Fbtrfs-ship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2Fbtrfs-ship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2Fbtrfs-ship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2Fbtrfs-ship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tve","download_url":"https://codeload.github.com/tve/btrfs-ship/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tve%2Fbtrfs-ship/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270385467,"owners_count":24574556,"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-14T02:00:10.309Z","response_time":75,"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":[],"created_at":"2024-10-10T14:08:01.970Z","updated_at":"2025-08-14T08:09:36.513Z","avatar_url":"https://github.com/tve.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btrfs-ship\n\nExtremely simple bash scripts to create daily incremental snapshots of btrfs subvolumes on one server and pull them incrementally from another server.\nIncrementals are rotated for one week, e.g. `@subvol-mon`, `@subvol-tue`, ... `@subvol-sun`.\n\nTODO:\n\n- script to start / repair incremental set-up\n\nExpected set-up:\n\n- btrfs subvolume at `/some/path/@subvol` on source server\n- `btrfs-snap.sh /some/path/@subvol` run daily on source server\n- ability of the destination server to ssh to source server\n- `btrfs-pull.sh -r /dest/path -s @,@subvol -h srcserver:/some/path` run daily on dest server\n\nTypical crontab entries:\n\n``` cron\n# btrfs snapshots just before midnight\n55 23   * * *     root  /home/src/btrfs-ship/btrfs-snap.sh /mnt/ssd/@ /mnt/ssd/@home \u003e\u003e/var/log/btrfs-snap 2\u003e\u00261\n```\n\n``` cron\n# Mirror btrfs snapshots from srcserver\n7  0    * * *   root    /home/btrfs-ship/btrfs-pull.sh -h srcserver:/mnt/ssd -s @ @home -r /mirror/srcserver \u003e\u003e/var/log/btrfs-pull 2\u003e\u00261\n```\n\nInitialize:\n\n- run `btrfs-snap.sh` on source server\n- rename `@-xxx` to the previous day `@-yyy`\n- copy snaps using `ssh srcserver btrfs send /mnt/ssd/@-yyy | btrfs rec /mirror/srcserver`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftve%2Fbtrfs-ship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftve%2Fbtrfs-ship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftve%2Fbtrfs-ship/lists"}