From 73c6a37ecf0aac04711e5624455743b3493a7ef5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 28 Mar 2026 10:16:18 +0200 Subject: feat(sync): auto-sync full backups and showcase cgit links --- internal/sync/repository_setup.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/sync/repository_setup.go') diff --git a/internal/sync/repository_setup.go b/internal/sync/repository_setup.go index e255274..9bb0c2f 100644 --- a/internal/sync/repository_setup.go +++ b/internal/sync/repository_setup.go @@ -55,8 +55,8 @@ func (s *Syncer) setupNewRepository(repoPath string) error { } org := &s.config.Organizations[i] - // Skip backup locations if backup is not enabled - if org.BackupLocation && !s.backupEnabled { + // Skip backup locations unless backup sync is currently active. + if org.BackupLocation && !s.backupActive() { continue } @@ -76,8 +76,8 @@ func (s *Syncer) setupExistingRepository(repoPath string) error { for i := range s.config.Organizations { org := &s.config.Organizations[i] - // Skip backup locations if backup is not enabled - if org.BackupLocation && !s.backupEnabled { + // Skip backup locations unless backup sync is currently active. + if org.BackupLocation && !s.backupActive() { continue } @@ -102,8 +102,8 @@ func (s *Syncer) getRemotesMap() map[string]*config.Organization { for i := range s.config.Organizations { org := &s.config.Organizations[i] - // Skip backup locations if backup is not enabled - if org.BackupLocation && !s.backupEnabled { + // Skip backup locations unless backup sync is currently active. + if org.BackupLocation && !s.backupActive() { continue } -- cgit v1.2.3