Compare commits
6 commits
6302de004f
...
6dd804f3d6
Author | SHA1 | Date | |
---|---|---|---|
6dd804f3d6 | |||
9467e9d0b7 | |||
632b659a24 | |||
c520b5455f | |||
64a96bc8e2 | |||
1f0d76ba9e |
3 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Check if the environment variable GRAFANA_MODE is set
|
||||
if [ -z "$GB_SEQUENCE" ]; then
|
||||
exec /app/grafana-backuper backup --json
|
||||
exec ./grafana-backuper backup --json
|
||||
else
|
||||
exec /app/grafana-backuper --json
|
||||
exec ./grafana-backuper --json
|
||||
fi
|
||||
|
|
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
//nolint:dupl // This function may be the same as or similar to other cmd functions.
|
||||
func NewBackupCommand(c *config.Config) *cobra.Command {
|
||||
backupCmd := &cobra.Command{
|
||||
Use: "backup",
|
||||
|
|
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
//nolint:dupl // This function may be the same as or similar to other cmd functions.
|
||||
func NewRestoreCommand(c *config.Config) *cobra.Command {
|
||||
restoreCmd := &cobra.Command{
|
||||
Use: "restore",
|
||||
|
|
Loading…
Add table
Reference in a new issue