Skip to content

Commit

Permalink
feat(cmd/backup): Load extra name from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Feb 8, 2025
1 parent 1e9818e commit c94cfbd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ var Cmd = &cobra.Command{
var cfg config.TergumConfig
cfg.Load(CmdFlagConfig, FlagExpandEnv)

extraName := cfg.Settings.ExtraName
if CmdFlagExtraName != "" {
extraName = CmdFlagExtraName
}

if FlagDoBackupV2 || cfg.Settings.UseDoBackupV2 {
do_backup.DoBackupV2(
CmdFlagConfig,
FlagExpandEnv,
FlagDisableTelemetry,
CmdFlagExtraName,
extraName,
FlagJsonLogs,
FlagDebugLogs,
)
Expand All @@ -40,7 +45,7 @@ var Cmd = &cobra.Command{
CmdFlagConfig,
FlagExpandEnv,
FlagDisableTelemetry,
CmdFlagExtraName,
extraName,
FlagJsonLogs,
FlagDebugLogs,
)
Expand Down

0 comments on commit c94cfbd

Please sign in to comment.