diff --git a/lib/backup/actions/util.go b/lib/backup/actions/util.go index d82c1a3b0c..046ff921ed 100644 --- a/lib/backup/actions/util.go +++ b/lib/backup/actions/util.go @@ -198,7 +198,7 @@ func NewRemoteFS(path string) (common.RemoteFS, error) { return nil, fmt.Errorf("dir must be absolute; got %q", dir) } fs := &fsremote.FS{ - Dir: dir, + Dir: filepath.Clean(dir), } return fs, nil case "gcs", "gs":