我在服务器的dir1/下有很多文件。我想将dir1/*.png下的所有png文件复制到google驱动器。
然而,
rclone copy dir1/*.png gdrive:dir2/给出错误。
Usage:
rclone copy source:path dest:path [flags]
Flags:
--create-empty-src-dirs Create empty source dirs on destination after copy
-h, --help help for copy
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command copy needs 2 arguments maximum: you provided 66 non flag arguments:有没有办法解决这个问题?
发布于 2021-04-26 16:44:05
"perfect“与--include :-)
rclone copy dir1/ gdrive:dir2/ --include "*.png"发布于 2021-04-14 17:45:52
好了,我已经找到了解决这个问题的另一种方法。
我使用了“排除”标志。
这样,我就排除了"directory_I_do_not_want_to_copy_under_dir1“和它的所有内容。
因此,我复制了dir1/ including *.png文件下的其余文件。
不是完美的解决方案,而是一个近似的解决方案:)
rclone copy dir1/ gdrive:dir2/ --exclude==/directory_I_do_not_want_to_copy_under_dir1/**https://stackoverflow.com/questions/67088801
复制相似问题