learning_ai_common_plat/.windsurf/workflows/repo_backup-main-branch.md
saravanakumardb1 7e3de866d3 refactor(workflows): centralize repo list in repos.txt
- Create repos.txt as single source of truth for all 7 workspace repos

- Update all repo-management workflows to source from repos.txt:

  - repo_sync-repos, repo_push-repos, repo_backup-and-push

  - repo_backup-main-branch, repo_commit-workspace

Benefits:

- One file to update when adding/removing repos

- Consistent repo list across all workflows

- Scripts can read repos.txt for automation
2026-03-03 16:16:12 -08:00

815 B

description
Smart backup of main branches with duplicate detection

Backup Main Branch

Creates smart backups of main branches across all repositories.

// turbo Run bash scripts/backup-main.sh from any repository root

The script reads repos.txt to determine which repositories to back up.

What it does:

  1. Checks each repository for changes
  2. Skips backup if main hasn't changed since last backup
  3. Creates timestamped backup branch
  4. Cleans up old backups (keeps 7 days)
  5. Returns to main branch

Repositories covered:

See repos.txt for the canonical list of all workspace repositories.

Features:

  • Smart duplicate detection
  • Automatic cleanup of old backups
  • Multi-repo support
  • Safe operations (always returns to main)
  • Color-coded output for clarity