diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-28 10:16:18 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-28 10:16:18 +0200 |
| commit | 73c6a37ecf0aac04711e5624455743b3493a7ef5 (patch) | |
| tree | ac58cce0dcd03ccac3f5f3e313a46ebe9d352b30 /internal/sync/repository_setup.go | |
| parent | 1615abaacccdbb5002404a77270fd333ce8ad718 (diff) | |
Diffstat (limited to 'internal/sync/repository_setup.go')
| -rw-r--r-- | internal/sync/repository_setup.go | 12 |
1 files changed, 6 insertions, 6 deletions
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 } |
