File tree Expand file tree Collapse file tree 8 files changed +14
-4
lines changed Expand file tree Collapse file tree 8 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func NewCmdBackupMongo() *cobra.Command {
37
37
EnableCache : false ,
38
38
}
39
39
backupOpt = restic.BackupOptions {
40
+ Host : restic .DefaultHost ,
40
41
StdinFileName : MongoDumpFile ,
41
42
}
42
43
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func NewCmdBackupMySql() *cobra.Command {
37
37
EnableCache : false ,
38
38
}
39
39
backupOpt = restic.BackupOptions {
40
+ Host : restic .DefaultHost ,
40
41
StdinFileName : MySqlDumpFile ,
41
42
}
42
43
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ func NewCmdBackupPG() *cobra.Command {
41
41
EnableCache : false ,
42
42
}
43
43
backupOpt = restic.BackupOptions {
44
+ Host : restic .DefaultHost ,
44
45
StdinFileName : PgDumpFile ,
45
46
}
46
47
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ const (
19
19
func NewCmdBackupPVC () * cobra.Command {
20
20
var (
21
21
outputDir string
22
- backupOpt restic.BackupOptions
23
- setupOpt = restic.SetupOptions {
22
+ backupOpt = restic.BackupOptions {
23
+ Host : restic .DefaultHost ,
24
+ }
25
+ setupOpt = restic.SetupOptions {
24
26
ScratchDir : restic .DefaultScratchDir ,
25
27
EnableCache : false ,
26
28
}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ func NewCmdRestoreMongo() *cobra.Command {
28
28
EnableCache : false ,
29
29
}
30
30
dumpOpt = restic.DumpOptions {
31
+ Host : restic .DefaultHost ,
31
32
FileName : MongoDumpFile ,
32
33
}
33
34
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ func NewCmdRestoreMySql() *cobra.Command {
27
27
EnableCache : false ,
28
28
}
29
29
dumpOpt = restic.DumpOptions {
30
+ Host : restic .DefaultHost ,
30
31
FileName : MySqlDumpFile ,
31
32
}
32
33
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ func NewCmdRestorePG() *cobra.Command {
27
27
EnableCache : false ,
28
28
}
29
29
dumpOpt = restic.DumpOptions {
30
+ Host : restic .DefaultHost ,
30
31
FileName : PgDumpFile ,
31
32
}
32
33
metrics = restic.MetricsOptions {
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ const (
17
17
func NewCmdRestorePVC () * cobra.Command {
18
18
var (
19
19
outputDir string
20
- restoreOpt restic.RestoreOptions
21
- setupOpt = restic.SetupOptions {
20
+ restoreOpt = restic.RestoreOptions {
21
+ Host : restic .DefaultHost ,
22
+ }
23
+ setupOpt = restic.SetupOptions {
22
24
ScratchDir : restic .DefaultScratchDir ,
23
25
EnableCache : false ,
24
26
}
You can’t perform that action at this time.
0 commit comments