Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude执行不生效 #230

Open
doing-cr7 opened this issue Jan 19, 2021 · 0 comments
Open

exclude执行不生效 #230

doing-cr7 opened this issue Jan 19, 2021 · 0 comments

Comments

@doing-cr7
Copy link

image
使用命令是可以的
rsync -av --delete --exclude='.*' /home/ubuntu/pub/ /data >/dev/null 2>&1

但是 我把命令加到了了inotify脚本,就是不可以;
/usr/bin/inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format '%T %w%f%e' -e modify,delete,create,attrib $src | while read files
do
rsync -av --delete --exclude='.*' /home/ubuntu/pub/ /data >/dev/null 2>&1

如果在这个脚本了里 去执行 就会导致 .git文件 无法被忽略

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant