-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用命令是可以的
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文件 无法被忽略
The text was updated successfully, but these errors were encountered: