SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix: excludeFileName is empty
Konstantin Lebedeve55fa6884836
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.goindex 2ae48cd40f..cd63f49f7b 100644--- a/weed/command/filer_backup.go+++ b/weed/command/filer_backup.go@@ -93,9 +93,12 @@ func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOptisourceFiler := pb.ServerAddress(*backupOption.filer)sourcePath := *backupOption.pathexcludePaths := util.StringSplit(*backupOption.excludePaths, ",")- reExcludeFileName, err := regexp.Compile(*backupOption.excludeFileName)- if err != nil {- return fmt.Errorf("error compile regexp %v for exclude file name: %+v", *backupOption.excludeFileName, err)+ var reExcludeFileName *regexp.Regexp+ if *backupOption.excludeFileName != "" {+ var err error+ if reExcludeFileName, err = regexp.Compile(*backupOption.excludeFileName); err != nil {+ return fmt.Errorf("error compile regexp %v for exclude file name: %+v", *backupOption.excludeFileName, err)+ }}timeAgo := *backupOption.timeAgotargetPath := dataSink.GetSinkToDirectory()