Documentation ¶
Index ¶
- Constants
- func ChangePermission(filePath string, mod int)
- func Done(v ...any)
- func Fatal(v ...any)
- func Fatalf(msg string, v ...any)
- func FileExists(filename string) bool
- func FlagGetBool(cmd *cobra.Command, flagName string) bool
- func FlagGetString(cmd *cobra.Command, flagName string) string
- func GetEnv(cmd *cobra.Command, flagName, envName string) string
- func Info(v ...any)
- func IsDirEmpty(name string) (bool, error)
- func SetEnv(key, value string)
- func ShowHistory()
- func TestDatabaseConnection()
- func WriteToFile(filePath, content string) error
Constants ¶
View Source
const BackupExample = "mongodb-bkup backup --dbname database --disable-compression\n" +
"mongodb-bkup backup --dbname database --storage s3 --path /custom-path --disable-compression"
View Source
const MainExample = "mongodb-bkup backup --dbname database --disable-compression\n" +
"mongodb-bkup backup --dbname database --storage s3 --path /custom-path\n" +
"mongodb-bkup restore --dbname database --file "
View Source
const RestoreExample = "mysql-bkup restore --dbname database --file \n" +
"bkup restore --dbname database --storage s3 --path /custom-path --file db_20231219_022941.sql.gz"
Variables ¶
This section is empty.
Functions ¶
func ChangePermission ¶
func FileExists ¶
func IsDirEmpty ¶
func ShowHistory ¶
func ShowHistory()
func TestDatabaseConnection ¶
func TestDatabaseConnection()
TestDatabaseConnection tests the database connection
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.