rsync-time-backup icon indicating copy to clipboard operation
rsync-time-backup copied to clipboard

exclude执行不生效

Open doing-cr7 opened this issue 3 years ago • 0 comments

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文件 无法被忽略

doing-cr7 avatar Jan 19 '21 08:01 doing-cr7