diff --git a/cmd/sync.go b/cmd/sync.go index a856bbecbd9f..6ee7794f75f2 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -72,7 +72,7 @@ $ juicefs sync --exclude='a?/b*' s3://mybucket.s3.us-east-2.amazonaws.com/ /mnt/ # SRC: a1/b1,a2/b2,aaa/b1 DST: empty sync result: a1/b1,aaa/b1 $ juicefs sync --include='a1/b1' --exclude='a[1-9]/b*' s3://mybucket.s3.us-east-2.amazonaws.com/ /mnt/jfs/ -# SRC: a1/b1,a2/b2,aaa/b1,b1,b2 DST: empty sync result: a1/b1,b2 +# SRC: a1/b1,a2/b2,aaa/b1,b1,b2 DST: empty sync result: b2 $ juicefs sync --include='a1/b1' --exclude='a*' --include='b2' --exclude='b?' s3://mybucket.s3.us-east-2.amazonaws.com/ /mnt/jfs/ Details: https://juicefs.com/docs/community/administration/sync diff --git a/docs/en/reference/command_reference.md b/docs/en/reference/command_reference.md index aace5a6eed19..f06a9531b69c 100644 --- a/docs/en/reference/command_reference.md +++ b/docs/en/reference/command_reference.md @@ -884,7 +884,7 @@ juicefs sync --exclude='a?/b*' s3://mybucket.s3.us-east-2.amazonaws.com/ jfs://M # SRC: a1/b1,a2/b2,aaa/b1 DST: empty sync result: a1/b1,aaa/b1 juicefs sync --include='a1/b1' --exclude='a[1-9]/b*' s3://mybucket.s3.us-east-2.amazonaws.com/ jfs://META-URL/ -# SRC: a1/b1,a2/b2,aaa/b1,b1,b2 DST: empty sync result: a1/b1,b2 +# SRC: a1/b1,a2/b2,aaa/b1,b1,b2 DST: empty sync result: b2 juicefs sync --include='a1/b1' --exclude='a*' --include='b2' --exclude='b?' s3://mybucket.s3.us-east-2.amazonaws.com/ jfs://META-URL/ ```