aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_backup.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
committerchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
commit67814a5c79078e0fd6ca226501b7e48cb2e0558f (patch)
tree73df37af06bf6b51e4305d38894ab73dd7aada00 /weed/command/filer_backup.go
parent1a4bf0dcb5852c62070fe9627b7e63c5d55bb460 (diff)
downloadseaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.tar.xz
seaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.zip
refactor and fix strings.Split
Diffstat (limited to 'weed/command/filer_backup.go')
-rw-r--r--weed/command/filer_backup.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.go
index 30b6c4962..309bd0439 100644
--- a/weed/command/filer_backup.go
+++ b/weed/command/filer_backup.go
@@ -8,7 +8,6 @@ import (
"github.com/seaweedfs/seaweedfs/weed/security"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/grpc"
- "strings"
"time"
)
@@ -87,7 +86,7 @@ func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOpti
sourceFiler := pb.ServerAddress(*backupOption.filer)
sourcePath := *backupOption.path
- excludePaths := strings.Split(*backupOption.excludePaths, ",")
+ excludePaths := util.StringSplit(*backupOption.excludePaths, ",")
timeAgo := *backupOption.timeAgo
targetPath := dataSink.GetSinkToDirectory()
debug := *backupOption.debug