{"id":50295268,"url":"https://github.com/adamlamers/tapehoard","last_synced_at":"2026-05-28T08:32:18.357Z","repository":{"id":357041037,"uuid":"1234302940","full_name":"adamlamers/tapehoard","owner":"adamlamers","description":"Tapehoard Backup Utility - Index and backup your filesystem","archived":false,"fork":false,"pushed_at":"2026-05-11T02:42:48.000Z","size":3149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-11T04:38:34.711Z","etag":null,"topics":["backup","backup-tool","fastapi","homelab","lto","lto-tape-drives","python3","self-hostable","self-hosted","self-hosting","svelte5","tape-archive","tape-drive","truenas","typescript"],"latest_commit_sha":null,"homepage":"","language":"Python","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/adamlamers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-10T02:21:49.000Z","updated_at":"2026-05-11T02:42:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/adamlamers/tapehoard","commit_stats":null,"previous_names":["adamlamers/tapehoard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/adamlamers/tapehoard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlamers%2Ftapehoard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlamers%2Ftapehoard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlamers%2Ftapehoard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlamers%2Ftapehoard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlamers","download_url":"https://codeload.github.com/adamlamers/tapehoard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlamers%2Ftapehoard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["backup","backup-tool","fastapi","homelab","lto","lto-tape-drives","python3","self-hostable","self-hosted","self-hosting","svelte5","tape-archive","tape-drive","truenas","typescript"],"created_at":"2026-05-28T08:32:16.184Z","updated_at":"2026-05-28T08:32:18.347Z","avatar_url":"https://github.com/adamlamers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TapeHoard\n\n\u003e Physical media archival for people who don't trust the cloud alone.\n\n**TapeHoard is not just for tapes.** It's a self-hosted backup manager for any offline-capable storage you already own:\n\n- **Offline HDDs / USB drives** — Any mountable filesystem (ext4, NTFS, APFS, exFAT)\n- **S3-compatible cloud** — Encrypted copies on Wasabi, Backblaze B2, MinIO, or any S3-compat provider\n- **LTO tape** — If you happen to own a tape drive like some of us do\n\nIt indexes your source filesystems, tracks what has been archived to which medium, and gives you a searchable catalog—even when the media itself is sitting in a vault across town.\n\n![Dashboard](docs/screenshots/dashboard.png)\n\n## Features\n\n| Feature | Description |\n|---|---|\n| **Index-First Design** | Browse, search, and check discrepancies against the database. Live filesystem is only touched during scans. |\n| **Multi-Media Fleet** | Manage HDDs, USB drives, S3-compatible cloud, and LTO tape in one inventory. |\n| **Ordered Auto-Archival** | Drag media to set fill priority. Backups flow to the first available medium in your sequence. |\n| **LTO Tape Native** | Barcode discovery via MAM, hardware compression control, direct SCSI streaming to tape. |\n| **Restore Queue** | Stage files for recovery. Get a minimum-media manifest so you only mount what you need. |\n| **Discrepancy Detection** | Find missing files, changes without backup, or policy exclusions. |\n| **Encrypted at Rest** | Per-media encryption secrets in a built-in keystore. Compatible with LTO hardware encryption (`stenc`) and client-side cloud encryption. |\n| **Scheduled Scans** | Cron-like scheduling for automatic filesystem discovery and hashing. |\n| **Exclusion Policies** | Global gitignore-style patterns to skip caches, build artifacts, and temp files. |\n\n## Screenshots\n\n| Dashboard | Media Inventory |\n|---|---|\n| ![Dashboard](docs/screenshots/dashboard.png) | ![Inventory](docs/screenshots/inventory.png) |\n\n| Live Filesystem | System Settings |\n|---|---|\n| ![Filesystem](docs/screenshots/filesystem.png) | ![Settings](docs/screenshots/settings.png) |\n\n## Quick Start (Docker Compose)\n\nThe recommended deployment is a single container with persistent volumes for the database, staging area, and source/restore mounts.\n\n```yaml\nservices:\n  tapehoard:\n    image: ghcr.io/tapehoard/tapehoard:latest\n    container_name: tapehoard\n    cap_add:\n      - SYS_RAWIO\n    devices:\n      - /dev/nst0:/dev/nst0\n    environment:\n      - TZ=UTC\n      - DATABASE_URL=sqlite:////database/tapehoard.db\n      - STAGING_DIRECTORY=/staging\n    ports:\n      - '30265:8000'\n    volumes:\n      - ./database:/database\n      - ./staging:/staging\n      - /mnt/archive:/source_data:ro\n      - /mnt/restores:/restores\n```\n\n### Requirements\n\n- **Linux host** (LTO tape support requires `mt`, `sg_read_attr`, and optionally `stenc` on the host or in the container)\n- **Persistent volumes** — Database and staging must survive container restarts\n\n\u003e **No tape drive?** Remove the `cap_add`, `devices`, and `SYS_RAWIO` lines from the compose file above. TapeHoard works great with just HDDs, USB drives, or cloud storage.\n\n### Hardware-Specific Notes\n\n**HDDs / USB Drives (Recommended for most users):**\n- Mount the drive filesystem into the container at `/source_data` or a restore destination\n- The HDD provider reads a `.tapehoard_id` file on the drive root to identify media\n- No special capabilities required — works on any Linux, macOS, or Docker host\n\n**S3-Compatible Cloud:**\n- Configure endpoint URL, bucket, region, and access credentials in settings\n- Optional client-side filename obfuscation and encryption\n\n**LTO Tape (For the dedicated):**\n- The container must run as root or have access to the SCSI device node\n- Requires `SYS_RAWIO` capability for direct SCSI access\n- Set `TAPEHOARD_TEST_MODE=true` to enable a mock LTO provider for development without hardware\n\n### First Run\n\n1. Start the container: `docker compose up -d`\n2. Open `http://host:30265`\n3. Go to **Settings → Drives** and configure your source roots (and tape drive path, if applicable)\n4. Trigger an initial scan from the dashboard\n5. Register media under **Physical Inventory**\n6. Run your first backup\n\n## Development\n\nTapeHoard uses [`just`](https://github.com/casey/just) as its command runner. Install it (`brew install just` or `cargo install just`), then run `just` to see all available commands.\n\n### Common Tasks\n\n```bash\njust dev          # Start backend + frontend with hot reload\njust backend      # Start only the backend\njust frontend     # Start only the frontend\njust test         # Run linting, backend tests, and E2E tests\njust lint         # Run Ruff, ty, and Svelte checks\njust format       # Auto-format Python code\njust generate-client   # Regenerate TypeScript SDK from OpenAPI spec\n```\n\n### Database Migrations\n\n```bash\njust db-upgrade                    # Apply pending migrations\njust db-migrate \"add user table\"   # Autogenerate a new migration\n```\n\n## Why TapeHoard?\n\nMost backup tools are built for always-online replication. TapeHoard is built for media you can unplug:\n\n- **Air-gappable** — Pull the drive or tape, store it offline. Your index stays searchable even when the media is in a vault.\n- **Auditability** — Every file's SHA-256, every version's offset on every medium, tracked in SQLite.\n- **No vendor lock-in** — Standard tar archives on tape, standard files on disk, standard S3 objects in cloud. If TapeHoard disappears, your data doesn't.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlamers%2Ftapehoard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlamers%2Ftapehoard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlamers%2Ftapehoard/lists"}