Hi all
I tried using some regular expression with filter of rclone sync/ copy upload wordpress photos to cloud but it can't match and skip correct file as i want.
example i have some photos file on folder wordpress upload:
a. photo-abc-original.jpg (original) - copy this file
b. photo-abc-original-1.jpg (original) - copy this file
c. photo-abc-original-9.jpg (original) - copy this file
d. photo-abc-original-180x250.jpg (thumbnail file) - skip copy this file
e. photo-abc-original-380x550.jpg (thumbnail file) - skip copy this file
-
rclone sync --filter "- /-\d+x\d+.(?:png|jpe?g|bmp|tiff|gif)$/" source:path dest:path
or rclone sync --exclude "/-\d+x\d+.(?:png|jpe?g|bmp|tiff|gif)$/" source:path dest:path
it can't match and copy/ sync all photos to cloud -
rclone sync --filter "- *[\d].{jpg,png,bmp,tiff,gif}" source:path dest:path
it will skip all photo file exclude file a. (lost b., c.)
How to using correct regular express "/-\d+x\d+.(?:png|jpe?g|bmp|tiff|gif)$/" with rclone?
Please help me resolve this problem.
Thanks all