Skip to main content
This guide covers the most common ways teams use Basecut in their day-to-day workflows.

Development: Pull Production Data Locally

Problem: Your local database has toy data (User 1, Test Order). You need realistic data to develop against production-like scenarios. Solution: Extract a subset of production data, anonymize PII, restore to your local database.
Workflow:
Tradeoffs:
  • ✅ Real data shapes, edge cases, and patterns
  • ✅ Everyone on the team has identical test data
  • ❌ One-time snapshot—doesn’t auto-update as production changes
Tip: Schedule weekly snapshot creation in CI to keep dev data fresh.

Testing: CI Pipeline Integration

Problem: Your test suite runs against seeded fixtures that don’t match production schema or data complexity. Solution: Restore a production-like snapshot before running tests in CI.
Tradeoffs:
  • ✅ Tests run against production-realistic data
  • ✅ Catches schema mismatches early
  • ❌ Slower CI (restore adds ~30s for typical snapshot)
  • ❌ Tests may be less deterministic (use seed for consistency)
Tip: Create a dedicated test-data snapshot with fixed seed for reproducibility.

Debugging: Extract Data Around Specific Issue

Problem: A bug occurred in production for user ID 12345. You need their exact data state to reproduce locally. Solution: Extract just that user and their related data.
Workflow:
Tradeoffs:
  • ✅ Exact production state causing the bug
  • ✅ No production access needed for debugging
  • ❌ May expose PII (use full anonymization if sharing externally)
Tip: Delete the snapshot after debugging to avoid accumulating one-off extractions.

Data Sharing: Realistic Datasets for Partners

Problem: Integration partner needs sample data that matches your production API schema and data patterns. Solution: Create a curated snapshot with heavy anonymization.
Workflow:
Tradeoffs:
  • ✅ Partners get realistic API response shapes
  • ✅ All PII anonymized for compliance
  • ❌ Static snapshot—may drift from current API
  • ❌ Requires partner to have Basecut CLI (or extract manually)

Team Onboarding: Consistent Dev Environment

Problem: New developers spend hours seeding local databases with realistic data. Solution: Document the snapshot restore process in your README.
Tradeoffs:
  • ✅ Onboarding takes minutes instead of hours
  • ✅ Everyone has identical data (easier to help debug)
  • ❌ Requires Basecut account for each developer

Schema Migration Testing

Problem: You’re changing your database schema. Will the migration work on production data shapes? Solution: Test migrations against a production-like snapshot.
Tradeoffs:
  • ✅ Catch migration issues before production deployment
  • ✅ Test with real data volumes and edge cases
  • ❌ Doesn’t catch schema drift between snapshot and current prod
Tip: Snapshot production immediately before running the migration test.

Next Steps

CI/CD Integration

Detailed GitHub Actions, GitLab CI, and CircleCI examples

Snapshot Rules

Complete guide to PII protection strategies

Execution Modes

Choose between self-hosted agent and local execution

Troubleshooting

Debug common workflow issues