summaryrefslogtreecommitdiff
path: root/internal/sync/repository_setup.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-28 10:16:18 +0200
committerPaul Buetow <paul@buetow.org>2026-03-28 10:16:18 +0200
commit73c6a37ecf0aac04711e5624455743b3493a7ef5 (patch)
treeac58cce0dcd03ccac3f5f3e313a46ebe9d352b30 /internal/sync/repository_setup.go
parent1615abaacccdbb5002404a77270fd333ce8ad718 (diff)
feat(sync): auto-sync full backups and showcase cgit linksv0.17.0main
Diffstat (limited to 'internal/sync/repository_setup.go')
-rw-r--r--internal/sync/repository_setup.go12
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
}