Skip to content

Commit

Permalink
roachtest: run scheduled backup only clusters with enterprise license
Browse files Browse the repository at this point in the history
Epic: none

Release note: None
  • Loading branch information
msbutler committed Feb 9, 2023
1 parent 95fcd95 commit 399a278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/roachprod/install/cockroach.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (c *SyncedCluster) Start(ctx context.Context, l *logger.Logger, startOpts S
}

// Only after a successful cluster initialization should we attempt to schedule backups.
if startOpts.ScheduleBackups && !startOpts.SkipInit {
if startOpts.ScheduleBackups && !startOpts.SkipInit && config.CockroachDevLicense != "" {
return c.createFixedBackupSchedule(ctx, l, startOpts.ScheduleBackupArgs)
}
return nil
Expand Down

0 comments on commit 399a278

Please sign in to comment.