chore: add storage type alt for smallcase and uppercase
This commit is contained in:
@@ -76,11 +76,11 @@ func BackupTask(db *dbConfig, config *BackupConfig) {
|
||||
switch config.storage {
|
||||
case "local":
|
||||
localBackup(db, config)
|
||||
case "s3":
|
||||
case "s3", "S3":
|
||||
s3Backup(db, config)
|
||||
case "ssh", "remote":
|
||||
case "ssh", "SSH", "remote":
|
||||
sshBackup(db, config)
|
||||
case "ftp":
|
||||
case "ftp", "FTP":
|
||||
ftpBackup(db, config)
|
||||
//utils.Fatal("Not supported storage type: %s", config.storage)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user