Quickstart
This guide walks through initializing Graft on a running Postgres container, creating a save point, branching, and verifying integrity.Prerequisites
- Docker installed and running (Docker Desktop or OrbStack on macOS)
rsyncavailable on your PATH- A running database container (e.g., Postgres, MySQL)
Initialize Graft
- Inspect the container and capture its image, environment variables, port mappings, and network settings
- Prompt you to select which Docker volume contains your database data
- Stop the container
- Bridge the data from the Docker volume to
~/.graft/my-postgres/branches/main/ - Recreate the container with a bind mount pointing at the branch directory
- Start the container
Capture a Save Point
Create a Branch
experiment from the current branch’s tree. The container is recreated with a bind mount pointing at the new branch directory: