node_modules/とpacage.jsonを除いてrsyncしたいのですが、どうやってもできません……
普通にincludeされてしまいます…。
何が悪いのか……教えて下さい…
rsyncコマンド
rsync -av -e "ssh" -r /mnt/c/_sync_/ --exclude='node_modules/' --exclude='package.json' root@150.95.1.1:/root/lib/_sync_
rsyncしたい元ディレクトリ
-rwxrwxrwx 1 root root 450 3月 6 00:02 gulpfile.js -rwxrwxrwx 1 root root 395 3月 5 23:57 gulpfile.js.bak -rwxrwxrwx 1 root root 25372 2月 23 05:01 mig.jpg drwxrwxrwx 0 root root 4096 2月 25 20:22 node_modules -rwxrwxrwx 1 root root 131286 2月 25 20:22 package-lock.json -rwxrwxrwx 1 root root 352 2月 25 20:22 package.json
環境
bash on windows
_$ rsync --version rsync version 3.1.1 protocol version 31
追記
フルパスでもダメです…。
rsync -av -e "ssh" -r /mnt/c/_sync_/ --exclude='/mnt/c/_sync_/node_modules/' --exclude='/mnt/c/_sync_/package.json' root@150.95.1.0:/root/lib/_sync_

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。