{"id":20666197,"url":"https://github.com/hazcod/macbac","last_synced_at":"2025-04-19T16:42:22.351Z","repository":{"id":54515821,"uuid":"325518496","full_name":"hazcod/macbac","owner":"hazcod","description":"Manage and automate your macOS snapshots.","archived":false,"fork":false,"pushed_at":"2021-10-12T07:29:21.000Z","size":23,"stargazers_count":32,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T10:22:33.345Z","etag":null,"topics":["backup","bash","macbac","macos","snapshot"],"latest_commit_sha":null,"homepage":"","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/hazcod.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}},"created_at":"2020-12-30T10:16:00.000Z","updated_at":"2024-01-14T00:01:58.000Z","dependencies_parsed_at":"2022-08-13T18:20:46.691Z","dependency_job_id":null,"html_url":"https://github.com/hazcod/macbac","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fmacbac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fmacbac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fmacbac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazcod%2Fmacbac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazcod","download_url":"https://codeload.github.com/hazcod/macbac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249740451,"owners_count":21318691,"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":["backup","bash","macbac","macos","snapshot"],"created_at":"2024-11-16T19:35:48.056Z","updated_at":"2025-04-19T16:42:22.333Z","avatar_url":"https://github.com/hazcod.png","language":"Shell","readme":"\n# macbac\n\nLists, controls and schedules efficient APFS snapshots for your convenience.\n\n```shell\n# let's take space efficient APFS snapshots every hour\n# knowing they get cleaned up if necessary\n% macbac schedule hourly\nInstalling daemon config to /Users/user/Library/LaunchAgents/com.hazcod.macbac.plist\nLoading config to enable schedule...\nScheduled hourly snapshots!\n\n# show our current snapshots\n% macbac list\n/Volumes/SSD\n\u003e 2020/12/30 10:23\n\u003e 2020/12/30 11:04\n\u003e 2020/12/30 11:05\n\n# take a manual snapshot\n% macbac snapshot\nAssuming / is the volume we would like to snapshot.\nCreated local snapshot with date: 2020-12-30-111728\nSnapshotted volume /\n\n# let's remove snapshots but ensure we keep the 3 most recent\n% macbac prune 3\nPruning 1 of 4 snapshots for /\nPruning snapshot 2021-02-04-155845 (1/1)\n```\n\n## How does it work?\n\nIt's a convenient wrapper around `tmutil` and basically replicates the local snapshot feature Time Machine would perform when you are backing up to a remote disk.\n\n## Installation\n\nInstallation can be done straight from [my Homebrew tap](https://github.com/hazcod/homebrew-hazcod) via `brew install hazcod/homebrew-hazcod/macbac` or just copy `macbac.sh` to  your filesystem.\n\n## Setup\n\n1. First enable Time Machine by running `macbac enable`.\n   You may need to add `Terminal.app` to Full Disk Access in Security \u0026 Privacy.\n   \n2. Now schedule your snapshots e.g. hourly via `macbac schedule hourly`.\n\n## Usage\n\n`Usage: macbac \u003cstatus|list|snapshot|enable|disable|schedule|deschedule|prune\u003e \u003c...\u003e`\n\nTo view Time Machine status: `macbac status`\n\nTo take a snapshot: `macbac snapshot`\n\nTo take a snapshot and keep 3: `macbac snapshot 3`\n\nTo prune but keep 5: `macbac prune 5`\n\nTo schedule hourly snapshots, keeping 24: `macbac schedule hourly`\n\nTo schedule hourly snapshots, keeping 3: `macbac schedule hourly 3` \n\nTo schedule daily snapshots, keeping 7: `macbac schedule daily`\n\nTo view when the next snapshot is going to be taken: `macbac next`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazcod%2Fmacbac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazcod%2Fmacbac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazcod%2Fmacbac/lists"}