Skip to content

Commit 8e24d32

Browse files
Dipta Dastamalsaha
authored andcommitted
Fixed scratch-dir, output-dir and hostname in functions/tasks yamls (#744)
1 parent 8d5944d commit 8e24d32

File tree

8 files changed

+14
-4
lines changed

8 files changed

+14
-4
lines changed

backup_mongo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func NewCmdBackupMongo() *cobra.Command {
3737
EnableCache: false,
3838
}
3939
backupOpt = restic.BackupOptions{
40+
Host: restic.DefaultHost,
4041
StdinFileName: MongoDumpFile,
4142
}
4243
metrics = restic.MetricsOptions{

backup_mysql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func NewCmdBackupMySql() *cobra.Command {
3737
EnableCache: false,
3838
}
3939
backupOpt = restic.BackupOptions{
40+
Host: restic.DefaultHost,
4041
StdinFileName: MySqlDumpFile,
4142
}
4243
metrics = restic.MetricsOptions{

backup_pg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func NewCmdBackupPG() *cobra.Command {
4141
EnableCache: false,
4242
}
4343
backupOpt = restic.BackupOptions{
44+
Host: restic.DefaultHost,
4445
StdinFileName: PgDumpFile,
4546
}
4647
metrics = restic.MetricsOptions{

backup_pvc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ const (
1919
func NewCmdBackupPVC() *cobra.Command {
2020
var (
2121
outputDir string
22-
backupOpt restic.BackupOptions
23-
setupOpt = restic.SetupOptions{
22+
backupOpt = restic.BackupOptions{
23+
Host: restic.DefaultHost,
24+
}
25+
setupOpt = restic.SetupOptions{
2426
ScratchDir: restic.DefaultScratchDir,
2527
EnableCache: false,
2628
}

restore_mongo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func NewCmdRestoreMongo() *cobra.Command {
2828
EnableCache: false,
2929
}
3030
dumpOpt = restic.DumpOptions{
31+
Host: restic.DefaultHost,
3132
FileName: MongoDumpFile,
3233
}
3334
metrics = restic.MetricsOptions{

restore_mysql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func NewCmdRestoreMySql() *cobra.Command {
2727
EnableCache: false,
2828
}
2929
dumpOpt = restic.DumpOptions{
30+
Host: restic.DefaultHost,
3031
FileName: MySqlDumpFile,
3132
}
3233
metrics = restic.MetricsOptions{

restore_pg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func NewCmdRestorePG() *cobra.Command {
2727
EnableCache: false,
2828
}
2929
dumpOpt = restic.DumpOptions{
30+
Host: restic.DefaultHost,
3031
FileName: PgDumpFile,
3132
}
3233
metrics = restic.MetricsOptions{

restore_pvc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ const (
1717
func NewCmdRestorePVC() *cobra.Command {
1818
var (
1919
outputDir string
20-
restoreOpt restic.RestoreOptions
21-
setupOpt = restic.SetupOptions{
20+
restoreOpt = restic.RestoreOptions{
21+
Host: restic.DefaultHost,
22+
}
23+
setupOpt = restic.SetupOptions{
2224
ScratchDir: restic.DefaultScratchDir,
2325
EnableCache: false,
2426
}

0 commit comments

Comments
 (0)