rsync不会排除gsutil 4.15中的隐藏文件 [英] rsync will not exclude hidden files in gsutil 4.15

查看:75
本文介绍了rsync不会排除gsutil 4.15中的隐藏文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,gsutil似乎没有上传隐藏文件.现在,无法阻止隐藏文件的上传.将-x命令与 .*/\\..*.*/[.].*仍将上传隐藏文件和目录. 这是一个带有存储桶的本地目录.

Previously gsutil appeared to not upload hidden files. Now hidden files cannot be prevented from upload. Using the -x command with either .*/\\..* or .*/[.].* still uploads both hidden files and directories. This is with a local directory up to a bucket.

是否需要其他表达式?

推荐答案

-x排除选项应该起作用:

The -x exclude option should work:

gsutil rsync -x '\..*|./[.].*$' source-dir gs://your-bucket

您可以从[官方文档]了解更多信息.

You can learn more about it from the [official documentation].

这篇关于rsync不会排除gsutil 4.15中的隐藏文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆