{"id":20122844,"url":"https://github.com/freaky/zfsnapr","last_synced_at":"2025-10-04T21:18:26.092Z","repository":{"id":142942577,"uuid":"464238567","full_name":"Freaky/zfsnapr","owner":"Freaky","description":"Recursive ZFS snapshot mounter","archived":false,"fork":false,"pushed_at":"2024-07-26T01:07:01.000Z","size":39,"stargazers_count":28,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T16:49:00.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.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,"zenodo":null}},"created_at":"2022-02-27T19:55:31.000Z","updated_at":"2025-03-30T19:42:14.000Z","dependencies_parsed_at":"2024-11-13T19:41:32.810Z","dependency_job_id":"9a7ac449-a3ff-4efd-ad14-7de136a3a638","html_url":"https://github.com/Freaky/zfsnapr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Freaky/zfsnapr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fzfsnapr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fzfsnapr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fzfsnapr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fzfsnapr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/zfsnapr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fzfsnapr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278373540,"owners_count":25976153,"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-10-04T02:00:05.491Z","response_time":63,"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-11-13T19:41:27.402Z","updated_at":"2025-10-04T21:18:26.045Z","avatar_url":"https://github.com/Freaky.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zfsnapr\n\n`zfsnapr` is a tool for mounting recursive ZFS snapshots on an alternative root path.\n\nIts primary intended use-case is for making consistant point-in-time backups using tools that are otherwise not ZFS-aware, though it is by no means limited to this.\n\n## Usage\n\n    zfsnapr [options] mount mountpoint\n    zfsnapr [options] umount mountpoint\n    zfsnapr [options] execute mountpoint command [args...]\n\n    -E, --exclude PATH               Do not mount datasets under this path\n    -r, --root PATH                  Only mount from the dataset mounted in this path\n    -e, --exec                       Do not mount noexec\n    -s, --suid                       Do not mount nosuid\n    -V, --version                    Display program version and exit\n    -D, --devfs                      Mount a /dev in the target\n    -T, --tmpfs PATH                 Mount a tmpfs on this path within the target\n    -p, --pool POOL                  Include this pool in the snapshot\n    -P, --passthrough PATH           Pass-through a location from the host\n    -h, --help                       Display usage and exit\n\nThe `mount` and `umount` subcommands simply create or tear down the requested mountpoints.\n\n`execute` is equivalent to `mount`, executing the given command, followed by `umount`.  In this case `zfsnapr` will exit with the same return code as the executing command.\n\n## Examples\n\n    zfsnapr execute /mnt/backup \\\n        borg create backup@backup0:/backups::my-backup /mnt/backup\n\nMounts snapshots of the system into the `/mnt/backup` directory and uses [Borg](https://borgbackup.readthedocs.io/en/stable/) to create a remote backup from it.\n\n    zfssnapr -eD -T /tmp -P /var/cache/backup execute /mnt/backup \\\n        chroot /mnt/backup /root/backup.sh\n\nCreate a chroot environment with executable mounts, a usable `/dev`, pristine tmpfs `/tmp`, and the host `/var/cache/backup` mounted read-write, and execute the script `/root/backup.sh` from within it.\n\n    zfsnapr -r /home -E /home/sekrit mount /mnt/backup\n\nMount a snapshot of all datasets mounted under `/home`, except for `/home/sekrit`.\n\n## Requirements\n\n`zfsnapr` should work on any officially-supported Ruby version without additional dependancies, and any ZFS version which supports `zfs list -p`.\n\n`zfsnapr` will abort on any error and may require manual intervention to cleanup mountpoints and snapshots - though normally a `zfsnapr umount` should suffice.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fzfsnapr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Fzfsnapr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fzfsnapr/lists"}