lake@localhost:~/Google$ cat rsync-exclude-from.txt
.repo
.git
/.gitignore
/out
lake@localhost:~/Google$ rsync -r -l -t --exclude-from "rsync-exclude-from.txt" --delete --progress /home/lake/Rockchip/Firefly-RK3399_Android8.1_git_SDK_20180901/ /home/lake/Google/git-android-8.1.0_r33/
### there are files of .gitignore
git-aosp-AndroidN7.1.x$ find build/ -name .gitignore
build/make/tools/makeparallel/.gitignore
build/make/.gitignore
build/blueprint/.gitignore
build/kati/.gitignore
############ avoid missing files through git/repo in aosp commit. or git add -f all ignored files in init commit!!!
########################
Ubuntu 16.04.3 /18.0.3LTS
rsync -a --exclude-from "/home/xxxx/rsync/rsync-exclude-from.txt" --exclude='out' --progress /source/ /home/xxxx/dest/
Ubuntu
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
--no-OPTION turn off an implied OPTION (e.g. --no-D)