From 64095a2c8d5a3a72c55d7bd0737c5542a5aeee09 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 3 Jul 2025 22:38:37 +0300 Subject: feat: add SSH backup locations with --backup flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add support for SSH backup locations (e.g., paul@server:git/) - Backup locations are one-way only (push only, never pull) - Automatic bare repository creation on SSH servers - Add --backup flag to opt-in to backup syncing - Backup locations are disabled by default for offline resilience - Update version to 0.2.0 This allows users to maintain private backups on home servers that may be offline without affecting regular sync operations. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/cli/flags.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/cli/flags.go') diff --git a/internal/cli/flags.go b/internal/cli/flags.go index 71708a2..322ad5a 100644 --- a/internal/cli/flags.go +++ b/internal/cli/flags.go @@ -24,6 +24,7 @@ type Flags struct { TestGitHubToken bool Clean bool DeleteRepo string + Backup bool } // ParseFlags parses command-line flags and returns the flags struct @@ -48,6 +49,7 @@ func ParseFlags() *Flags { flag.BoolVar(&f.TestGitHubToken, "test-github-token", false, "test GitHub token authentication") flag.BoolVar(&f.Clean, "clean", false, "delete all repositories in work directory (with confirmation)") flag.StringVar(&f.DeleteRepo, "delete-repo", "", "delete specified repository from all configured organizations (with confirmation)") + flag.BoolVar(&f.Backup, "backup", false, "enable syncing to backup locations") flag.Parse() -- cgit v1.2.3