–include,–exclude,–include-from, –exclude-from,–filter,或–filter-from。尝试它们的最简单方法是使用 ls 命令, 或者–dry-run和v 一起运行。 模式 这个模式用于匹配基于 unix shell 使用的 “文件全局”的包含或排除文件。 如果模式以/开头,则它仅匹配目录树的顶层,相对于远程的根(不一定是本地驱动器...
--exclude-from <规则文件>:从文件添加包含规则 --include-from <规则文件>:从文件添加删除规则 --filter-from <规则文件>:从文件添加包含 / 排除规则。比如--filter-from filter-file.txt。 filter-file.txt示例: 代码语言:javascript 复制 -secret*.jpg+*.jpg+*.png+file2.avi-/dir/Trash/** + /dir/...
--include - 包含文件或目录。--filter - 文件过滤规则,相当于上面两个选项的其它使用方式。包含规则以 + 开头,排除规则以 - 开头。文件类型过滤 比如 --exclude "*.bak"、--filter "- *.bak",排除所有 bak 文件。也可以写作。比如 --include "*.{png,jpg}"、--filter "+ *.{png,jpg}",包含所...
--include-fromincludes.txt#从includes.txt中读取要备份的文件或目录 常用命令 查看远程文件夹的体积占用大小 rclone size remote:path 挂载为本地磁盘 windows使用rclone挂载为本地磁盘需要先安装winfsp,下载地址:https://winfsp.dev/rel/ 挂载命令 rclone mount remote:path/to/files/path/to/local/mount ...
--include- 包含文件或目录。 --filter- 文件过滤规则,相当于上面两个选项的其它使用方式。包含规则以+开头,排除规则以-开头。 文件类型过滤 比如--exclude "*.bak"、--filter "- *.bak",排除所有bak文件。也可以写作。 比如--include "*.{png,jpg}"、--filter "+ *.{png,jpg}",包含所有png和jpg文件...
比如--include "*.{png,jpg}" --filter "+ *.{png,jpg}"包含所有png和jpg文件,排除其他文件 --delete-excluded删除排除的文件。需配合过滤参数使用,否则无效 目录过滤 目录过滤需要在目录名称后面加上/否则会被当做文件进行匹配 以/开头只会匹配根目录(指定目录下),否则匹配所目录,这同样适用于文件 ...
不同于 rclone purge,rclone delete 可使用 include/exclude 过滤器选择删除文件内容。 一些例子: 删除文件大小大于 100M 的文件 # 先检查哪些文件将被删除 rclone --min-size 100M lsl remote:path # 使用rclone lsl 列出大于100M的文件 rclone --dry-run --min-size 100M delete remote:path # 使用--dry...
--include– 包含文件或目录。 --filter– 文件过滤规则,相当于上面两个选项的其它使用方式。包含规则以+开头,排除规则以-开头。 文件类型过滤 比如--exclude "*.bak"、--filter "- *.bak",排除所有bak文件。也可以写作。 比如--include "*.{png,jpg}"、--filter "+ *.{png,jpg}",包含所有png和jpg文...
--include "/{Video,Software}/**"仅包含根目录下的Video和Software目录的所有内容 大小过滤 默认大小单位为kBytes但可以使用kM或G后缀 --min-size过滤小于指定大小的文件。比如--min-size 50表示不会传输小于50k的文件。 --max-size过滤大于指定大小的文件。比如--max-size 1G表示不会传输大于1G的文件。
Each path as it passes through rclone is matched against the include and exclude rules like --include, --exclude, --include-from, --exclude-from, --filter, or --filter-from. The simplest way to try them out is using the ls command, or --dry-run together with -v....