Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/mongodump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"

"github.com/spf13/cobra"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoBackupForKind(ctx, mongodump.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to backup database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/mongorestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"

"github.com/spf13/cobra"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoRestoreForKind(ctx, mongorestore.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to restore database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/mysqldump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"
"github.com/mittwald/brudi/pkg/source/mysqldump"

Expand All @@ -20,6 +22,7 @@ var (

err := source.DoBackupForKind(ctx, mysqldump.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to backup database")
panic(err)
}
},
Expand Down
2 changes: 2 additions & 0 deletions cmd/mysqlrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/mittwald/brudi/pkg/source"
Expand All @@ -20,6 +21,7 @@ var (

err := source.DoRestoreForKind(ctx, mysqlrestore.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to restore database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/pgdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source/pgdump"

"github.com/spf13/cobra"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoBackupForKind(ctx, pgdump.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to backup database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/pgrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"

"github.com/spf13/cobra"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoRestoreForKind(ctx, pgrestore.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to restore database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"
"github.com/mittwald/brudi/pkg/source/psql"

Expand All @@ -20,6 +22,7 @@ var (

err := source.DoRestoreForKind(ctx, psql.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to restore database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/redisdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source/redisdump"

"github.com/mittwald/brudi/pkg/source"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoBackupForKind(ctx, redisdump.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to backup database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source/tar"

"github.com/mittwald/brudi/pkg/source"
Expand All @@ -21,6 +23,7 @@ var (

err := source.DoBackupForKind(ctx, tar.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to backup database")
panic(err)
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/tarrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package cmd
import (
"context"

"github.com/sirupsen/logrus"

"github.com/mittwald/brudi/pkg/source"
"github.com/mittwald/brudi/pkg/source/tarrestore"

Expand All @@ -20,6 +22,7 @@ var (

err := source.DoRestoreForKind(ctx, tarrestore.Kind, cleanup, useRestic, useResticForget)
if err != nil {
logrus.WithError(err).Error("Failed to restore database")
panic(err)
}
},
Expand Down