chore: add storage type alt for smallcase and uppercase

This commit is contained in:
Jonas Kaninda
2024-10-03 18:17:48 +02:00
parent d774584f64
commit a4ad0502cf
2 changed files with 7 additions and 7 deletions

View File

@@ -75,11 +75,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)
default:
localBackup(db, config)